[vlc-commits] macosx: small visual improvement for resume playback dialog
David Fuhrmann
git at videolan.org
Sat Nov 29 16:54:15 CET 2014
vlc | branch: master | David Fuhrmann <dfuhrmann at videolan.org> | Sat Nov 29 16:53:21 2014 +0100| [68386325c5fb1895fd29bdbf5f8e1590dd767c21] | committer: David Fuhrmann
macosx: small visual improvement for resume playback dialog
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=68386325c5fb1895fd29bdbf5f8e1590dd767c21
---
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 203381e..5d626aa 100644
--- a/modules/gui/macosx/playlist.m
+++ b/modules/gui/macosx/playlist.m
@@ -1539,9 +1539,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