Skip to content
This repository has been archived by the owner on Dec 31, 2024. It is now read-only.

Commit

Permalink
moved ControlPanel to SettingOsSpecific (win32)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkohlmeier committed Dec 16, 2019
1 parent c5b512d commit 59d410c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
5 changes: 3 additions & 2 deletions src/renderer/settings/control-panel-settings-component.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
import Vue from "vue";
import { vueEventDispatcher } from "../vue-event-dispatcher";
import { VueEventChannels } from "../vue-event-channels";
import { PluginSettings } from "./plugin-settings";
import { UserConfigOptions } from "../../common/config/user-config-options";
import { TranslationSet } from "../../common/translation/translation-set";
import { UserConfirmationDialogParams, UserConfirmationDialogType } from "./modals/user-confirmation-dialog-params";
import { deepCopy } from "../../common/helpers/object-helpers";
import { defaultControlPanelOptions } from "../../common/config/control-panel-options";
import { SettingOsSpecific } from "./settings-os-specific";
import { platform } from "os";

export const controlPanelSettingsComponent = Vue.extend({
data() {
return {
settingName: PluginSettings.ControlPanel,
settingName: SettingOsSpecific.ControlPanel.replace(`${platform()}:`, ""),
visible: false,
};
},
Expand Down
1 change: 0 additions & 1 deletion src/renderer/settings/plugin-settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,4 @@ export enum PluginSettings {
ColorConverter = "Color Converter",
BrowserBookmarks = "Browser Bookmarks",
Dictionary = "Dictionary",
ControlPanel = "Control Panel",
}
8 changes: 4 additions & 4 deletions src/renderer/settings/setting-menu-item-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ export const settingMenuItemComponent = Vue.extend({
return translations.currencyConverter;
case PluginSettings.Commandline:
return translations.commandline;
case PluginSettings.ControlPanel:
return translations.controlPanel;
case PluginSettings.Dictionary:
return translations.dictionary;
case PluginSettings.Email:
Expand All @@ -60,6 +58,8 @@ export const settingMenuItemComponent = Vue.extend({
return translations.url;
case PluginSettings.WebSearch:
return translations.websearch;
case SettingOsSpecific.ControlPanel:
return translations.controlPanel;
case SettingOsSpecific.Everything:
return translations.everythingSearch;
case SettingOsSpecific.MdFind:
Expand Down Expand Up @@ -97,8 +97,6 @@ export const settingMenuItemComponent = Vue.extend({
return config.colorConverterOptions.isEnabled;
case PluginSettings.Commandline:
return config.commandlineOptions.isEnabled;
case PluginSettings.ControlPanel:
return config.controlPanelOptions.isEnabled;
case PluginSettings.CurrencyConverter:
return config.currencyConverterOptions.isEnabled;
case PluginSettings.Dictionary:
Expand All @@ -123,6 +121,8 @@ export const settingMenuItemComponent = Vue.extend({
return config.websearchOptions.isEnabled;
case PluginSettings.Workflow:
return config.workflowOptions.isEnabled;
case SettingOsSpecific.ControlPanel.replace(`${platform()}:`, ""):
return config.controlPanelOptions.isEnabled;
case SettingOsSpecific.Everything.replace(`${platform()}:`, ""):
return config.everythingSearchOptions.enabled;
case SettingOsSpecific.MdFind.replace(`${platform()}:`, ""):
Expand Down
1 change: 1 addition & 0 deletions src/renderer/settings/settings-os-specific.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ export enum SettingOsSpecific {
MdFind = "darwin:Mdfind",
Everything = "win32:Everything",
Uwp = "win32:UWP",
ControlPanel = "win32:Control Panel",
}

0 comments on commit 59d410c

Please sign in to comment.