🔧 Use high-priority as part of the prpfile name
This commit is contained in:
@@ -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.
|
||||
|
||||
+10
-12
@@ -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 <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\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
|
||||
|
||||
@@ -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');
|
||||
|
||||
|
||||
@@ -181,7 +181,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
<child>
|
||||
<object class="AdwActionRow">
|
||||
<property name="title" translatable="yes">High Priority</property>
|
||||
<property name="subtitle" translatable="yes">Force using this profile even if it has less constraints than another matching profile.</property>
|
||||
<property name="subtitle" translatable="yes">Use this profile even if there are better matching profiles.</property>
|
||||
<property name="subtitle-lines">1</property>
|
||||
<property name="activatable-widget">profile-high-priority</property>
|
||||
<child>
|
||||
|
||||
@@ -438,7 +438,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label" translatable="yes">Force using this profile even if it has less constraints than another matching profile.</property>
|
||||
<property name="label" translatable="yes">Use this profile even if there are better matching profiles.</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="halign">start</property>
|
||||
<property name="valign">center</property>
|
||||
|
||||
@@ -393,7 +393,7 @@ SPDX-License-Identifier: GPL-3.0-or-later
|
||||
</child>
|
||||
<child>
|
||||
<object class="GtkLabel">
|
||||
<property name="label" translatable="yes">Force using this profile even if it has less constraints than another matching profile.</property>
|
||||
<property name="label" translatable="yes">Use this profile even if there are better matching profiles.</property>
|
||||
<property name="xalign">0</property>
|
||||
<property name="halign">start</property>
|
||||
<property name="valign">center</property>
|
||||
|
||||
@@ -57,7 +57,7 @@ SPDX-License-Identifier: CC0-1.0
|
||||
<key name="profile-high-priority" type="b">
|
||||
<default>false</default>
|
||||
<summary>Profile High Priority</summary>
|
||||
<description>Force using this profile even if it has less constraints than another matching profile.</description>
|
||||
<description>Use this profile even if there are better matching profiles.</description>
|
||||
</key>
|
||||
|
||||
<!-- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -->
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user