Remove use of build version in mac launcher settings

This commit is contained in:
Ryan Huffman 2019-08-22 15:07:12 -07:00
parent 73c120b154
commit 1eaba67f67

View file

@ -289,12 +289,11 @@ static BOOL const DELETE_ZIP_FILES = TRUE;
Interface* interface = [[Interface alloc] initWith:interfaceAppPath]; Interface* interface = [[Interface alloc] initWith:interfaceAppPath];
currentVersion = [interface getVersion:&error]; currentVersion = [interface getVersion:&error];
if (currentVersion == 0 && error != nil) { if (currentVersion == 0 && error != nil) {
NSLog(@"can't get version from interface, falling back to settings: %@", error); NSLog(@"can't get version from interface: %@", error);
currentVersion = [Settings.sharedSettings latestBuildVersion];
} }
} @catch (NSException *exception) { } @catch (NSException *exception) {
NSLog(@"an exception was thrown: %@", exception); NSLog(@"an exception was thrown while getting current interface version: %@", exception);
currentVersion = [Settings.sharedSettings latestBuildVersion]; currentVersion = 0;
} }
return currentVersion; return currentVersion;
} }