#include <string.h>
#include <vlc_keys.h>
+#ifdef HAVE_CONFIG_H
+# include "config.h"
+#endif
+
#import "intf.h"
#import "fspanel.h"
#import "vout.h"
o_interaction_list = [[VLCInteractionList alloc] init];
o_sfilters = nil;
#ifdef UPDATE_CHECK
- //FIXME o_update = [[VLCUpdate alloc] init];
+ o_update = [[VLCUpdate alloc] init];
#endif
i_lastShownVolume = -1;
if( !nib_update_loaded )
nib_update_loaded = [NSBundle loadNibNamed:@"Update" owner:self];
- // FIXME
- //if([o_update shouldCheckForUpdate])
- // [NSThread detachNewThreadSelector:@selector(checkForUpdate) toTarget:o_update withObject:NULL];
+ if([o_update shouldCheckForUpdate])
+ [NSThread detachNewThreadSelector:@selector(checkForUpdate) toTarget:o_update withObject:NULL];
#endif
/* Handle sleep notification */
#ifdef UPDATE_CHECK
if( !nib_update_loaded )
nib_update_loaded = [NSBundle loadNibNamed:@"Update" owner:self];
-
[o_update showUpdateWindow];
+#else
+ msg_Err( VLCIntf, "Updates checking was not enabled in this build" );
#endif
}