From f599eadfa43d48442edb48ba871432270e406a88 Mon Sep 17 00:00:00 2001 From: MPG13 Date: Sun, 8 Jul 2018 14:56:07 -0600 Subject: [PATCH] final push for this repo for a while --- .theos/last_package | 2 +- .theos/packages/com.mpg13.undertime-1.4.1 | 2 +- Tweak.xm | 9 +-------- 3 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.theos/last_package b/.theos/last_package index d70d92a..9c6ca22 100644 --- a/.theos/last_package +++ b/.theos/last_package @@ -1 +1 @@ -./packages/com.mpg13.undertime_1.4.1-4+debug_iphoneos-arm.deb +./packages/com.mpg13.undertime_1.4.1-31+debug_iphoneos-arm.deb diff --git a/.theos/packages/com.mpg13.undertime-1.4.1 b/.theos/packages/com.mpg13.undertime-1.4.1 index bf0d87a..b74e882 100644 --- a/.theos/packages/com.mpg13.undertime-1.4.1 +++ b/.theos/packages/com.mpg13.undertime-1.4.1 @@ -1 +1 @@ -4 \ No newline at end of file +31 \ No newline at end of file diff --git a/Tweak.xm b/Tweak.xm index e05222a..d0e244f 100644 --- a/Tweak.xm +++ b/Tweak.xm @@ -187,15 +187,8 @@ static void udtTimerLoad(){ [formatter setDateFormat:@"yyyy/MM/dd HH:mm:ss"]; [formatter setTimeZone:[NSTimeZone defaultTimeZone]]; - if ([NSThread isMainThread]) { - [udtTimer scheduleInRunLoop:[NSRunLoop mainRunLoop]]; - } else { - dispatch_async(dispatch_get_main_queue(), ^ { - [udtTimer scheduleInRunLoop:[NSRunLoop mainRunLoop]]; - }); + [udtTimer scheduleInRunLoop:[NSRunLoop mainRunLoop]]; } - -}