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];
currentVersion = [interface getVersion:&error];
if (currentVersion == 0 && error != nil) {
NSLog(@"can't get version from interface, falling back to settings: %@", error);
currentVersion = [Settings.sharedSettings latestBuildVersion];
NSLog(@"can't get version from interface: %@", error);
}
} @catch (NSException *exception) {
NSLog(@"an exception was thrown: %@", exception);
currentVersion = [Settings.sharedSettings latestBuildVersion];
NSLog(@"an exception was thrown while getting current interface version: %@", exception);
currentVersion = 0;
}
return currentVersion;
}