[vlc-commits] macosx: small visual improvement for resume playback dialog

David Fuhrmann git at videolan.org
Sat Nov 29 16:54:45 CET 2014


vlc/vlc-2.2 | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Nov 29 16:53:21 2014 +0100| [33ba4a3db1574e600c8c36e05563e1454d5c4c11] | committer: David Fuhrmann

macosx: small visual improvement for resume playback dialog

(cherry picked from commit 68386325c5fb1895fd29bdbf5f8e1590dd767c21)
Signed-off-by: David Fuhrmann <dfuhrmann at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=33ba4a3db1574e600c8c36e05563e1454d5c4c11
---

 modules/gui/macosx/playlist.m |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/modules/gui/macosx/playlist.m b/modules/gui/macosx/playlist.m
index d999cee..883f264 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1559,9 +1559,12 @@
 
     NSInteger returnValue = NSAlertErrorReturn;
     if (settingValue == 0) { // ask
-        NSAlert *theAlert = [NSAlert alertWithMessageText:_NS("Continue playback?") defaultButton:_NS("Continue") alternateButton:_NS("Restart playback") otherButton:_NS("Always continue") informativeTextWithFormat:_NS("Playback of \"%@\" will continue at %@"), [NSString stringWithUTF8String:input_item_GetTitleFbName(p_item)], [[VLCStringUtility sharedInstance] stringForTime:lastPosition.intValue]];
 
         currentResumeTimeout = 6;
+        NSString *o_restartButtonLabel = _NS("Restart playback");
+        o_restartButtonLabel = [o_restartButtonLabel stringByAppendingFormat:@" (%d)", currentResumeTimeout];
+        NSAlert *theAlert = [NSAlert alertWithMessageText:_NS("Continue playback?") defaultButton:_NS("Continue") alternateButton:o_restartButtonLabel otherButton:_NS("Always continue") informativeTextWithFormat:_NS("Playback of \"%@\" will continue at %@"), [NSString stringWithUTF8String:input_item_GetTitleFbName(p_item)], [[VLCStringUtility sharedInstance] stringForTime:lastPosition.intValue]];
+
         NSTimer *timer = [NSTimer timerWithTimeInterval:1
                                                  target:self
                                                selector:@selector(updateAlertWindow:)



More information about the vlc-commits mailing list