]> git.sesse.net Git - vlc/commitdiff
macosx: forward-port [d0fbd04ce361f9dbc16d44dae09c168db708b3a3]
authorFelix Paul Kühne <fkuehne@videolan.org>
Mon, 20 Jul 2009 22:00:58 +0000 (00:00 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Mon, 20 Jul 2009 22:01:31 +0000 (00:01 +0200)
modules/gui/macosx/update.m

index 12f162b56c904891572be1e18bad2c0d8260f6e8..766e59bd623b85c567f4bbd1c72ed26777510c8c 100644 (file)
@@ -55,15 +55,6 @@ static VLCUpdate *_o_sharedInstance = nil;
     } else {
         _o_sharedInstance = [super init];
         b_checked = false;
-
-        /* clean the interface */
-        [o_fld_releaseNote setString: @""];
-        [o_fld_currentVersion setString: @""];
-        /* translate strings to the user's language */
-        [o_update_window setTitle: _NS("Check for Updates")];
-        [o_btn_DownloadNow setTitle: _NS("Download now")];
-        [o_btn_okay setTitle: _NS("OK")];
-        [o_chk_updateOnStartup setTitle: _NS("Automatically check for updates")];
     }
 
     return _o_sharedInstance;
@@ -76,6 +67,15 @@ static VLCUpdate *_o_sharedInstance = nil;
 
 - (void)awakeFromNib
 {
+    /* clean the interface */
+    [o_fld_releaseNote setString: @""];
+    [o_fld_currentVersion setStringValue: @""];
+    /* translate strings to the user's language */
+    [o_update_window setTitle: _NS("Check for Updates")];
+    [o_btn_DownloadNow setTitle: _NS("Download now")];
+    [o_btn_okay setTitle: _NS("OK")];
+    [o_chk_updateOnStartup setTitle: _NS("Automatically check for updates")];
+
     /* we don't use - (BOOL)shouldCheckUpdateOnStartup because we don't want
      * the Alert panel to pop up at this time */
     [o_chk_updateOnStartup setState: [[NSUserDefaults standardUserDefaults] boolForKey: kPrefUpdateOnStartup]];