still broke
This commit is contained in:
parent
e29cfafc85
commit
277a0c41a4
2 changed files with 5 additions and 4 deletions
2
Makefile
2
Makefile
|
@ -1,5 +1,5 @@
|
|||
ARCHS = arm64
|
||||
TARGET = iphone:clang:latest
|
||||
TARGET = iphone:10.3:10.3
|
||||
|
||||
include $(THEOS)/makefiles/common.mk
|
||||
|
||||
|
|
7
Tweak.xm
7
Tweak.xm
|
@ -1,5 +1,6 @@
|
|||
#import "important.h"
|
||||
#import <spawn.h>
|
||||
#import <PersistentConnection/PCSimpleTimer.h>
|
||||
|
||||
@interface _UIStatusBarStringView : UIView
|
||||
@property (copy) NSString *text;
|
||||
|
@ -62,16 +63,16 @@ NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init];
|
|||
@interface _UIStatusBarTimeItem : UIView
|
||||
@property (copy) _UIStatusBarStringView *shortTimeView;
|
||||
@property (copy) _UIStatusBarStringView *pillTimeView;
|
||||
@property (nonatomic, retain) NSTimer *nz9_seconds_timer;
|
||||
@property (nonatomic) PCSimpleTimer *nz9_seconds_timer;
|
||||
@end
|
||||
|
||||
%hook _UIStatusBarTimeItem
|
||||
%property (nonatomic, retain) NSTimer *nz9_seconds_timer;
|
||||
%property (nonatomic, retain) PCSimpleTimer *nz9_seconds_timer;
|
||||
|
||||
- (instancetype)init {
|
||||
%orig;
|
||||
if(GetPrefBool(@"Enable") && ((!GetPrefBool(@"lineTwoStandard") && [lineTwo containsString:@"s"]) || (!GetPrefBool(@"lineOneStandard") && [lineOne containsString:@"s"]))) {
|
||||
self.nz9_seconds_timer = [NSTimer scheduledTimerWithTimeInterval:1.0 repeats:YES block:^(NSTimer *timer) {
|
||||
self.nz9_seconds_timer = [PCSimpleTimer initWithTimerInterval:1.0 block:^(PCSimpleTimer *timer) {
|
||||
self.shortTimeView.text = @":";
|
||||
self.pillTimeView.text = @":";
|
||||
[self.shortTimeView setFont: [self.shortTimeView.font fontWithSize:sizeOfFont]];
|
||||
|
|
Reference in a new issue