Commit ef60a430 authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: forward-port [d0fbd04ce361f9dbc16d44dae09c168db708b3a3]

parent ff1dd682
...@@ -55,15 +55,6 @@ static VLCUpdate *_o_sharedInstance = nil; ...@@ -55,15 +55,6 @@ static VLCUpdate *_o_sharedInstance = nil;
} else { } else {
_o_sharedInstance = [super init]; _o_sharedInstance = [super init];
b_checked = false; 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; return _o_sharedInstance;
...@@ -76,6 +67,15 @@ static VLCUpdate *_o_sharedInstance = nil; ...@@ -76,6 +67,15 @@ static VLCUpdate *_o_sharedInstance = nil;
- (void)awakeFromNib - (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 /* we don't use - (BOOL)shouldCheckUpdateOnStartup because we don't want
* the Alert panel to pop up at this time */ * the Alert panel to pop up at this time */
[o_chk_updateOnStartup setState: [[NSUserDefaults standardUserDefaults] boolForKey: kPrefUpdateOnStartup]]; [o_chk_updateOnStartup setState: [[NSUserDefaults standardUserDefaults] boolForKey: kPrefUpdateOnStartup]];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment