Apply Initially as default value of new Properties

Change the default value from "Do Not Affect" to "Apply Initially" when
adding new properties in Window Rules.

REASON: prior "Do Not Affect" as default and occasionally I forget to
change the setting to something else when adding new properties.
Unfortunately, this means I forget to do it and so it isn't saved when
I close the window. I will then go back in to change it to Apply Initially
or in some cases have to add the new property again as it wasn't saved in
the set.

I think if Apply Initially were to be the default it would be an easier
and faster experience to add new properties.
This commit is contained in:
Michael Tunnell 2021-01-04 01:52:39 +00:00 committed by Ismael Asensio
parent 66ee898556
commit 5193658aa2

View file

@ -140,25 +140,25 @@ QList<RulePolicy::Data> RulePolicy::policyOptions(RulePolicy::Type type)
}; };
static const auto setRuleOptions = QList<RulePolicy::Data> { static const auto setRuleOptions = QList<RulePolicy::Data> {
{Rules::DontAffect,
i18n("Do Not Affect"),
i18n("The window property will not be affected and therefore the default handling for it will be used."
"\nSpecifying this will block more generic window settings from taking effect.")},
{Rules::Apply, {Rules::Apply,
i18n("Apply Initially"), i18n("Apply Initially"),
i18n("The window property will be only set to the given value after the window is created." i18n("The window property will be only set to the given value after the window is created."
"\nNo further changes will be affected.")}, "\nNo further changes will be affected.")},
{Rules::Remember,
i18n("Remember"),
i18n("The value of the window property will be remembered and, every time the window"
" is created, the last remembered value will be applied.")},
{Rules::Force,
i18n("Force"),
i18n("The window property will be always forced to the given value.")},
{Rules::ApplyNow, {Rules::ApplyNow,
i18n("Apply Now"), i18n("Apply Now"),
i18n("The window property will be set to the given value immediately and will not be affected later" i18n("The window property will be set to the given value immediately and will not be affected later"
"\n(this action will be deleted afterwards).")}, "\n(this action will be deleted afterwards).")},
{Rules::Remember,
i18n("Remember"),
i18n("The value of the window property will be remembered and, every time the window"
" is created, the last remembered value will be applied.")},
{Rules::DontAffect,
i18n("Do Not Affect"),
i18n("The window property will not be affected and therefore the default handling for it will be used."
"\nSpecifying this will block more generic window settings from taking effect.")},
{Rules::Force,
i18n("Force"),
i18n("The window property will be always forced to the given value.")},
{Rules::ForceTemporarily, {Rules::ForceTemporarily,
i18n("Force Temporarily"), i18n("Force Temporarily"),
i18n("The window property will be forced to the given value until it is hidden" i18n("The window property will be forced to the given value until it is hidden"
@ -166,9 +166,9 @@ QList<RulePolicy::Data> RulePolicy::policyOptions(RulePolicy::Type type)
}; };
static auto forceRuleOptions = QList<RulePolicy::Data> { static auto forceRuleOptions = QList<RulePolicy::Data> {
setRuleOptions.at(0), // Rules::DontAffect setRuleOptions.at(4), // Rules::Force
setRuleOptions.at(3), // Rules::Force
setRuleOptions.at(5), // Rules::ForceTemporarily setRuleOptions.at(5), // Rules::ForceTemporarily
setRuleOptions.at(3), // Rules::DontAffect
}; };
switch (type) { switch (type) {