Added option to settings to toggle status bar item
This commit is contained in:
@@ -1597,6 +1597,22 @@ export class RemotelySaveSettingTab extends PluginSettingTab {
|
||||
await this.plugin.saveSettings();
|
||||
});
|
||||
});
|
||||
|
||||
// custom status bar items is not supported on mobile
|
||||
if (!Platform.isMobileApp) {
|
||||
new Setting(basicDiv)
|
||||
.setName(t("settings_enablestatusbar_info"))
|
||||
.setDesc(t("settings_enablestatusbar_info_desc"))
|
||||
.addToggle((toggle) => {
|
||||
toggle
|
||||
.setValue(this.plugin.settings.enableStatusBarInfo)
|
||||
.onChange(async (val) => {
|
||||
this.plugin.settings.enableStatusBarInfo = val;
|
||||
await this.plugin.saveSettings();
|
||||
new Notice(t("settings_enablestatusbar_reloadrequired_notice"));
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
//////////////////////////////////////////////////
|
||||
// below for advanced settings
|
||||
|
||||
Reference in New Issue
Block a user