- (void)showUpdateWindow;
- (void)checkForUpdate;
-- (void)updateManagement: (vlc_bool_t) b_success;
+- (void)setUpToDate: (BOOL)uptodate;
- (void)performDownload:(NSString *)path;
+ (VLCUpdate *)sharedInstance;
[self setShouldCheckUpdate: [sender state]];
}
-- (void)updateManagement:(vlc_bool_t)b_success
+- (void)setUpToDate:(BOOL)uptodate
{
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
- if( !b_success ||
- update_CompareReleaseToCurrent( p_u ) != UpdateReleaseStatusNewer )
+ if( uptodate )
{
[o_fld_status setStringValue: _NS("This version of VLC is the latest available.")];
[o_btn_DownloadNow setEnabled: NO];
static void updateCallback( void * p_data, vlc_bool_t b_success )
{
- [(id)p_data updateManagement: b_success];
+ [(id)p_data setUpToDate: b_success && update_CompareReleaseToCurrent( ((VLCUpdate*)p_data)->p_u ) == UpdateReleaseStatusNewer ];
}
- (void)checkForUpdate