default template update flag
This commit is contained in:
1 parent
a0179cc6cc
commit
f698ad2fb6
1 file changed
+5
-2
@@ -207,11 +207,13 @@ static CGRect layoutViewBounds;
|
|||||||
[self importEncodedProfiles:profilesEncoded];
|
[self importEncodedProfiles:profilesEncoded];
|
||||||
|
|
||||||
NSString *bundleId = [[NSBundle mainBundle] bundleIdentifier];
|
NSString *bundleId = [[NSBundle mainBundle] bundleIdentifier];
|
||||||
|
/*
|
||||||
bool isRegularTF = !([bundleId isEqualToString:@"com.voidlink.iOS"]
|
bool isRegularTF = !([bundleId isEqualToString:@"com.voidlink.iOS"]
|
||||||
|| [bundleId isEqualToString:@"com.voidlinkextreme.iOS"]
|
|| [bundleId isEqualToString:@"com.voidlinkextreme.iOS"]
|
||||||
|| [bundleId isEqualToString:@"com.voidlink.tf.debug10.iOS"]);
|
|| [bundleId isEqualToString:@"com.voidlink.tf.debug10.iOS"]);
|
||||||
|
|
||||||
[self setProfileToSelected: GenericUtils.isIPhone ? 1 : (isRegularTF ? 1: 2)];
|
[self setProfileToSelected: GenericUtils.isIPhone ? 1 : (isRegularTF ? 1: 2)]; */
|
||||||
|
[self setProfileToSelected: 0];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -288,7 +290,8 @@ static CGRect layoutViewBounds;
|
|||||||
// NSString* persistedKey = @"widgetProfileUpdated-20260322";
|
// NSString* persistedKey = @"widgetProfileUpdated-20260322";
|
||||||
// NSString* persistedKey = @"widgetProfileUpdated-20260413-2";
|
// NSString* persistedKey = @"widgetProfileUpdated-20260413-2";
|
||||||
// NSString* persistedKey = @"widgetProfileUpdated-20260430-1";
|
// NSString* persistedKey = @"widgetProfileUpdated-20260430-1";
|
||||||
NSString* persistedKey = @"widgetProfileUpdated-20260513-1";
|
// NSString* persistedKey = @"widgetProfileUpdated-20260513-1";
|
||||||
|
NSString* persistedKey = @"widgetProfileUpdated-20260530";
|
||||||
BOOL needImportDefaultTemplates = [defaults objectForKey:persistedKey] == nil;
|
BOOL needImportDefaultTemplates = [defaults objectForKey:persistedKey] == nil;
|
||||||
|
|
||||||
if(profiles.count == 0 || needImportDefaultTemplates){
|
if(profiles.count == 0 || needImportDefaultTemplates){
|
||||||
|
|||||||
Reference in new issue
Block a user