Skip to content

Commit

Permalink
updated the code style
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandra authored and Alexandra committed Aug 21, 2022
1 parent 2fb6d17 commit 9d8a8d6
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Tweak/ControlCenter/VeToggle.m
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
BOOL dontShowToggleWarningAgain;

@implementation VeToggle

- (id)init {
self = [super init];

Expand Down Expand Up @@ -80,4 +81,5 @@ - (void)setSelected:(BOOL)selected {
[[[[UIApplication sharedApplication] keyWindow] rootViewController] presentViewController:alertController animated:YES completion:nil];
}
}

@end
2 changes: 2 additions & 0 deletions Tweak/Settings/Controllers/VeDetailAttachmentListController.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#import "VeDetailAttachmentListController.h"

@implementation VeDetailAttachmentListController

- (void)viewDidLoad {
[super viewDidLoad];

Expand Down Expand Up @@ -66,4 +67,5 @@ - (void)copyAttachment {
- (void)saveAttachment {
UIImageWriteToSavedPhotosAlbum([UIImage imageWithData:[self attachmentData]], nil, nil, nil);
}

@end
2 changes: 2 additions & 0 deletions Tweak/Settings/Controllers/VeDetailMessageListController.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#import "VeDetailMessageListController.h"

@implementation VeDetailMessageListController

- (void)viewDidLoad {
[super viewDidLoad];

Expand Down Expand Up @@ -50,4 +51,5 @@ - (BOOL)shouldReloadSpecifiersOnResume {
- (void)copyMessage {
[[UIPasteboard generalPasteboard] setString:[self message]];
}

@end
2 changes: 2 additions & 0 deletions Tweak/Settings/Controllers/VePreferencesListController.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#import "VePreferencesListController.h"

@implementation VePreferencesListController

- (void)viewDidLoad {
[super viewDidLoad];

Expand All @@ -27,4 +28,5 @@ - (void)viewDidLoad {
- (BOOL)shouldReloadSpecifiersOnResume {
return false;
}

@end
1 change: 1 addition & 0 deletions Tweak/Settings/Custom-Cells/VeDetailAttachmentCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -83,4 +83,5 @@ - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSStr

return self;
}

@end
1 change: 1 addition & 0 deletions Tweak/Settings/Custom-Cells/VeDetailCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,4 +45,5 @@ - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSStr

return self;
}

@end
1 change: 1 addition & 0 deletions Tweak/Settings/Custom-Cells/VeDetailFullAttachmentCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,5 @@ - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSStr

return self;
}

@end
1 change: 1 addition & 0 deletions Tweak/Settings/Custom-Cells/VeNotificationCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,5 @@ - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSStr

return self;
}

@end
2 changes: 2 additions & 0 deletions Tweak/Settings/Custom-Cells/VeSearchBarCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#import "VeSearchBarCell.h"

@implementation VeSearchBarCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier specifier:(PSSpecifier *)specifier {
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier specifier:specifier];

Expand All @@ -27,4 +28,5 @@ - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSStr

return self;
}

@end
2 changes: 2 additions & 0 deletions Tweak/Settings/Custom-Cells/VeStatisticsCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#import "VeStatisticsCell.h"

@implementation VeStatisticsCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier specifier:(PSSpecifier *)specifier {
self = [super initWithStyle:style reuseIdentifier:reuseIdentifier specifier:specifier];

Expand Down Expand Up @@ -170,4 +171,5 @@ - (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSStr

return self;
}

@end
8 changes: 8 additions & 0 deletions Tweak/Settings/VeSettings.x
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
#import "VeSettings.h"

%group VePreferences

%hook BulletinBoardController

- (void)viewDidLoad {
%orig;

Expand All @@ -26,11 +28,15 @@
- (BOOL)shouldReloadSpecifiersOnResume {
return false;
}

%end

%end

%group VeBundleLoader

%hook PSUIPrefsListController

- (void)lazyLoadBundle:(PSSpecifier *)specifier {
%orig;

Expand All @@ -39,7 +45,9 @@
MSHookMessageEx([self class], _cmd, (IMP)&%orig, NULL); // deactivate this hook
}
}

%end

%end

%ctor {
Expand Down
4 changes: 4 additions & 0 deletions Tweak/SpringBoard/VeSpringBoard.x
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
#import "VeSpringBoard.h"

%group Ve

%hook BBServer

- (void)publishBulletin:(id)arg1 destinations:(unsigned long long)arg2 {
%orig;

Expand Down Expand Up @@ -134,7 +136,9 @@
}
}
}

%end

%end

%ctor {
Expand Down

0 comments on commit 9d8a8d6

Please sign in to comment.