diff options
| author | Tomáš Znamenáček | 2015-01-07 15:59:08 +0100 |
|---|---|---|
| committer | Tomáš Znamenáček | 2015-01-07 16:26:49 +0100 |
| commit | 595d3c55bce3c2d2e594c274e53953b2526820c6 (patch) | |
| tree | 3bb717e602e46247f1bb8b817afac880172b1900 | |
| parent | 9a223134d0b2f5dabf5dcd00f07c0a252c73e516 (diff) | |
| download | MASShortcut-595d3c55bce3c2d2e594c274e53953b2526820c6.tar.bz2 | |
Fixed the alert that pops up when the shortcut is already used.
The longer message text was used as the alert title.
| -rw-r--r-- | Framework/MASShortcutView.m | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Framework/MASShortcutView.m b/Framework/MASShortcutView.m index 0ae8f6c..a449829 100644 --- a/Framework/MASShortcutView.m +++ b/Framework/MASShortcutView.m @@ -399,8 +399,8 @@ void *kUserDataHint = &kUserDataHint; @"Title for alert when shortcut is already used"); NSAlert* alert = [[NSAlert alloc]init]; alert.alertStyle = NSCriticalAlertStyle; - alert.informativeText = [NSString stringWithFormat:format, shortcut]; - alert.messageText = explanation; + alert.informativeText = explanation; + alert.messageText = [NSString stringWithFormat:format, shortcut]; [alert addButtonWithTitle:NSLocalizedString(@"OK", @"Alert button when shortcut is already used")]; [alert runModal]; |
