mirror of
https://github.com/TriliumNext/Notes.git
synced 2026-02-05 21:30:31 -06:00
client: Hide tray settings on web
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import OptionsWidget from "../options_widget.js";
|
||||
import { t } from "../../../../services/i18n.js";
|
||||
import utils from "../../../../services/utils.js";
|
||||
|
||||
const TPL = `
|
||||
<div class="options-section">
|
||||
@@ -19,6 +20,10 @@ export default class TrayOptions extends OptionsWidget {
|
||||
this.updateOption('disableTray', !this.$trayEnabled.is(":checked") ? "true" : "false"));
|
||||
}
|
||||
|
||||
isEnabled() {
|
||||
return utils.isElectron();
|
||||
}
|
||||
|
||||
async optionsLoaded(options) {
|
||||
this.$trayEnabled.prop("checked", options.disableTray !== 'true');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user