mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-03-18 21:50:33 +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) {
|
set required(state: boolean) {
|
||||||
if (state) {
|
if (state) {
|
||||||
this._required.classList.remove("unfocused");
|
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) {
|
set requires_restart(state: boolean) {
|
||||||
if (state) {
|
if (state) {
|
||||||
this._restart.classList.remove("unfocused");
|
this._restart.classList.remove("unfocused");
|
||||||
|
|||||||
Reference in New Issue
Block a user