From f698ad2fb68a2d03d60bd5416952f28b5082a62e Mon Sep 17 00:00:00 2001 From: True Zhuanjia Date: Sat, 30 May 2026 21:36:14 +0800 Subject: [PATCH] default template update flag --- VoidLink/Input/CustomOSC/OSCProfilesManager.m | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/VoidLink/Input/CustomOSC/OSCProfilesManager.m b/VoidLink/Input/CustomOSC/OSCProfilesManager.m index 25a1a691..97feeee5 100644 --- a/VoidLink/Input/CustomOSC/OSCProfilesManager.m +++ b/VoidLink/Input/CustomOSC/OSCProfilesManager.m @@ -207,11 +207,13 @@ static CGRect layoutViewBounds; [self importEncodedProfiles:profilesEncoded]; NSString *bundleId = [[NSBundle mainBundle] bundleIdentifier]; + /* bool isRegularTF = !([bundleId isEqualToString:@"com.voidlink.iOS"] || [bundleId isEqualToString:@"com.voidlinkextreme.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-20260413-2"; // 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; if(profiles.count == 0 || needImportDefaultTemplates){