confirmation when rule removed from conf

This commit is contained in:
gnembon committed 2020-06-21 17:26:12 -03:00
1 parent bb3ecb8a94
commit 04c91e7311
2 files changed
+4 -2

No files matched your search

@@ -470,7 +470,7 @@ public class SettingsManager
writeSettingsToConf(conf.getLeft()); // this may feels weird, but if conf
// is locked, it will never reach this point.
rule.set(source,stringValue);
Messenger.m(source ,"gi "+String.format(tr("ui.rule_%(rule)s_will_now_default_to_%(value)s","rule %s will now default to %s"), rule.translatedName(), stringValue));
Messenger.m(source ,"gi "+String.format(tr("ui.rule_%(rule)s_will_now_default_to_%(value)s","Rule %s will now default to %s"), rule.translatedName(), stringValue));
return 1;
}
// removes overrides of the default values in the file
@@ -482,6 +482,7 @@ public class SettingsManager
conf.getLeft().remove(rule.name);
writeSettingsToConf(conf.getLeft());
rules.get(rule.name).resetToDefault(source);
Messenger.m(source ,"gi "+String.format(tr("ui.rule_%(rule)s_not_set_restart","Rule %s will now not be set on restart"), rule.translatedName()));
return 1;
}
@@ -47,7 +47,8 @@
"ui.tags": "Tags",
"ui.change_permanently": "Change permanently",
"ui.click_to_keep_the_settings_in_%(conf)s_to_save_across_restarts": "click to keep the settings in %s to save across restarts",
"ui.rule_%(rule)s_will_now_default_to_%(value)s": "rule %s will now default to %s",
"ui.rule_%(rule)s_will_now_default_to_%(value)s": "Rule %s will now default to %s",
"ui.rule_%(rule)s_not_set_restart": "Rule %s will now not be set on restart",
"ui.current_value": "current value"
}