|
|
|
@ -1,5 +1,6 @@
|
|
|
|
import OptionsWidget from "../options_widget.js";
|
|
|
|
import OptionsWidget from "../options_widget.js";
|
|
|
|
import { t } from "../../../../services/i18n.js";
|
|
|
|
import { t } from "../../../../services/i18n.js";
|
|
|
|
|
|
|
|
import utils from "../../../../services/utils.js";
|
|
|
|
|
|
|
|
|
|
|
|
const TPL = `
|
|
|
|
const TPL = `
|
|
|
|
<div class="options-section">
|
|
|
|
<div class="options-section">
|
|
|
|
@ -19,6 +20,10 @@ export default class TrayOptions extends OptionsWidget {
|
|
|
|
this.updateOption('disableTray', !this.$trayEnabled.is(":checked") ? "true" : "false"));
|
|
|
|
this.updateOption('disableTray', !this.$trayEnabled.is(":checked") ? "true" : "false"));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
isEnabled() {
|
|
|
|
|
|
|
|
return utils.isElectron();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
async optionsLoaded(options) {
|
|
|
|
async optionsLoaded(options) {
|
|
|
|
this.$trayEnabled.prop("checked", options.disableTray !== 'true');
|
|
|
|
this.$trayEnabled.prop("checked", options.disableTray !== 'true');
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|