diff --git a/extension.js b/extension.js index 4c300db..671289b 100644 --- a/extension.js +++ b/extension.js @@ -420,6 +420,7 @@ class Extension { p.settings.connect('changed::profile-color-scheme', () => updatePriority(p)); p.settings.connect('changed::profile-power-mode', () => updatePriority(p)); p.settings.connect('changed::profile-power-profile', () => updatePriority(p)); + p.settings.connect('changed::profile-high-priority', () => updatePriority(p)); }); // Sort all profiles initially according to their initial priority. diff --git a/po/burn-my-windows.pot b/po/burn-my-windows.pot index 68b12c2..3684477 100644 --- a/po/burn-my-windows.pot +++ b/po/burn-my-windows.pot @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: burn-my-windows\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2023-02-10 21:20+0100\n" +"POT-Creation-Date: 2023-02-15 13:19+0100\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -82,7 +82,12 @@ msgstr "" msgid "Balanced or Performance" msgstr "" -#: src/ProfileManager.js:186 +#: src/ProfileManager.js:185 resources/ui/gtk4/prefs.ui:387 +#: resources/ui/gtk3/prefs.ui:432 resources/ui/adw/prefs.ui:183 +msgid "High Priority" +msgstr "" + +#: src/ProfileManager.js:191 msgid "Standard Profile" msgstr "" @@ -234,12 +239,12 @@ msgid "Delete" msgstr "" #. Translators: %s will be replaced by the effect's name. -#: prefs.js:921 +#: prefs.js:922 #, javascript-format msgid "Preview for %s" msgstr "" -#: prefs.js:943 +#: prefs.js:944 msgid "Close this Window to Preview the Effect!" msgstr "" @@ -715,16 +720,9 @@ msgstr "" msgid "Advanced Profile Options" msgstr "" -#: resources/ui/gtk4/prefs.ui:387 resources/ui/gtk3/prefs.ui:432 -#: resources/ui/adw/prefs.ui:183 -msgid "High Priority" -msgstr "" - #: resources/ui/gtk4/prefs.ui:396 resources/ui/gtk3/prefs.ui:441 #: resources/ui/adw/prefs.ui:184 -msgid "" -"Force using this profile even if it has less constraints than another " -"matching profile." +msgid "Use this profile even if there are better matching profiles." msgstr "" #: resources/ui/gtk4/prefs.ui:428 resources/ui/gtk3/prefs.ui:473 diff --git a/prefs.js b/prefs.js index 8768093..3e1b8de 100644 --- a/prefs.js +++ b/prefs.js @@ -788,6 +788,7 @@ var PreferencesDialog = class PreferencesDialog { updateProfileButtonMenuIfChanged('profile-color-scheme'); updateProfileButtonMenuIfChanged('profile-power-mode'); updateProfileButtonMenuIfChanged('profile-power-profile'); + updateProfileButtonMenuIfChanged('profile-high-priority'); this.bindEntry('profile-app'); diff --git a/resources/ui/adw/prefs.ui b/resources/ui/adw/prefs.ui index 69f500f..40e9858 100644 --- a/resources/ui/adw/prefs.ui +++ b/resources/ui/adw/prefs.ui @@ -181,7 +181,7 @@ SPDX-License-Identifier: GPL-3.0-or-later High Priority - Force using this profile even if it has less constraints than another matching profile. + Use this profile even if there are better matching profiles. 1 profile-high-priority diff --git a/resources/ui/gtk3/prefs.ui b/resources/ui/gtk3/prefs.ui index f7999fd..badce07 100644 --- a/resources/ui/gtk3/prefs.ui +++ b/resources/ui/gtk3/prefs.ui @@ -438,7 +438,7 @@ SPDX-License-Identifier: GPL-3.0-or-later - Force using this profile even if it has less constraints than another matching profile. + Use this profile even if there are better matching profiles. 0 start center diff --git a/resources/ui/gtk4/prefs.ui b/resources/ui/gtk4/prefs.ui index 1f54c70..9c1d507 100644 --- a/resources/ui/gtk4/prefs.ui +++ b/resources/ui/gtk4/prefs.ui @@ -393,7 +393,7 @@ SPDX-License-Identifier: GPL-3.0-or-later - Force using this profile even if it has less constraints than another matching profile. + Use this profile even if there are better matching profiles. 0 start center diff --git a/schemas/org.gnome.shell.extensions.burn-my-windows-profile.gschema.xml b/schemas/org.gnome.shell.extensions.burn-my-windows-profile.gschema.xml index 703598e..866a721 100644 --- a/schemas/org.gnome.shell.extensions.burn-my-windows-profile.gschema.xml +++ b/schemas/org.gnome.shell.extensions.burn-my-windows-profile.gschema.xml @@ -57,7 +57,7 @@ SPDX-License-Identifier: CC0-1.0 false Profile High Priority - Force using this profile even if it has less constraints than another matching profile. + Use this profile even if there are better matching profiles. diff --git a/src/ProfileManager.js b/src/ProfileManager.js index 4d1c81e..12bccbd 100644 --- a/src/ProfileManager.js +++ b/src/ProfileManager.js @@ -180,6 +180,11 @@ var ProfileManager = class { _('Balanced or Performance')]); // clang-format on + // If the profile is a high-priority profile, also add this.. + if (settings.get_boolean('profile-high-priority')) { + items.push(_('High Priority')); + } + let name = ''; if (items.length == 0) {