mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-01-18 16:47:42 +01:00
settings: fix (restart)required detection on save
This commit is contained in:
@@ -132,7 +132,7 @@ class DOMSetting {
|
||||
}
|
||||
}
|
||||
|
||||
get required(): boolean { return this._required.classList.contains("badge"); }
|
||||
get required(): boolean { return !(this._required.classList.contains("unfocused")); }
|
||||
set required(state: boolean) {
|
||||
if (state) {
|
||||
this._required.classList.remove("unfocused");
|
||||
@@ -143,7 +143,7 @@ class DOMSetting {
|
||||
}
|
||||
}
|
||||
|
||||
get requires_restart(): boolean { return this._restart.classList.contains("badge"); }
|
||||
get requires_restart(): boolean { return !(this._restart.classList.contains("unfocused")); }
|
||||
set requires_restart(state: boolean) {
|
||||
if (state) {
|
||||
this._restart.classList.remove("unfocused");
|
||||
|
||||
Reference in New Issue
Block a user