summaryrefslogtreecommitdiffstats
path: root/macosx/HBController.m
diff options
context:
space:
mode:
authorDamiano Galassi <[email protected]>2017-12-19 12:20:43 +0100
committerDamiano Galassi <[email protected]>2017-12-19 12:20:43 +0100
commitb5610f07bb472ff390a88802283cede23e01b351 (patch)
tree1cd5b23ee3d7db19f842cfeb661bbf02f56bb87b /macosx/HBController.m
parent0b38e6d03c0297c72f0c250ae2311a9d7b521fa0 (diff)
MacGui: append "(Modified)" to the preset name.
Diffstat (limited to 'macosx/HBController.m')
-rw-r--r--macosx/HBController.m8
1 files changed, 4 insertions, 4 deletions
diff --git a/macosx/HBController.m b/macosx/HBController.m
index 172a291b6..187bf7929 100644
--- a/macosx/HBController.m
+++ b/macosx/HBController.m
@@ -1003,9 +1003,6 @@
*/
- (void)customSettingUsed
{
- // Deselect the currently selected Preset if there is one
- [fPresetsView deselect];
-
// Update the preset and file name only if we are not
// undoing or redoing, because if so it's already stored
// in the undo manager.
@@ -1013,7 +1010,10 @@
if (!(undo.isUndoing || undo.isRedoing))
{
// Change UI to show "Custom" settings are being used
- self.job.presetName = NSLocalizedString(@"Custom", @"");
+ if (![self.job.presetName hasSuffix:NSLocalizedString(@"(Modified)", nil)])
+ {
+ self.job.presetName = [NSString stringWithFormat:@"%@ %@", self.job.presetName, NSLocalizedString(@"(Modified)", nil)];
+ }
self.edited = YES;
[self updateFileName];
}