diff --git a/js/interface/settings.js b/js/interface/settings.js index f7708e7d..02c413b5 100644 --- a/js/interface/settings.js +++ b/js/interface/settings.js @@ -723,6 +723,7 @@ const Settings = { } Settings.dialog.show(); if (options.search_term) Settings.dialog.content_vue.search_term = options.search_term; + if (options.profile) Settings.dialog.content_vue.profile = options.profile; Settings.dialog.content_vue.$forceUpdate(); }, old: {} diff --git a/js/plugin_loader.js b/js/plugin_loader.js index 456421fb..c07f4cde 100644 --- a/js/plugin_loader.js +++ b/js/plugin_loader.js @@ -1096,6 +1096,9 @@ BARS.defineActions(function() { Settings.saveLocalStorages(); }, 20); }, + openSettingInSettings(key, profile) { + Settings.openDialog({search_term: key, profile}); + }, settingContextMenu(setting, event) { new Menu([ { @@ -1478,13 +1481,13 @@ BARS.defineActions(function() { @contextmenu="settingContextMenu(setting, $event)" >
@@ -1494,17 +1497,17 @@ BARS.defineActions(function() { :style="{'--color-profile': markerColors[profile_here.color] && markerColors[profile_here.color].standard}" :class="{active: profile_here.isActive()}" :title="tl('Has override in profile ' + profile_here.name)" - @click.stop="profile = (profile == profile_here) ? null : profile_here" + @click.stop="openSettingInSettings(key, profile_here)" />
{{ setting.description }}