mirror of
https://github.com/AstraExt/astra-monitor.git
synced 2025-11-06 15:44:14 +08:00
only set selected value if saved choice found
This commit is contained in:
@@ -447,7 +447,9 @@ export default class PrefsUtils {
|
||||
});
|
||||
|
||||
select.set_model(stringList);
|
||||
select.selected = selected;
|
||||
if(selected >= 0) {
|
||||
select.selected = selected;
|
||||
}
|
||||
|
||||
resetSignal = resetButton?.connect('clicked', () => {
|
||||
choices.forEach((choice, index) => {
|
||||
|
||||
Reference in New Issue
Block a user