fix respring button
This commit is contained in:
@ -10,11 +10,6 @@
|
||||
return _specifiers;
|
||||
}
|
||||
|
||||
-(void)voidView {
|
||||
[super loadView];
|
||||
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Respring" style:UIBarButtonItemStylePlain target:self action:@selector(saveTapped)];
|
||||
}
|
||||
|
||||
-(void)saveTapped {
|
||||
CFNotificationCenterPostNotification(CFNotificationCenterGetDarwinNotifyCenter(), CFSTR("com.yaypixxo.kage/respring"), NULL, NULL, YES);
|
||||
}
|
||||
|
@ -4,12 +4,6 @@
|
||||
<dict>
|
||||
<key>items</key>
|
||||
<array>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>label</key>
|
||||
<string>Kage - by YaYPIXXO</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSSwitchCell</string>
|
||||
@ -24,6 +18,12 @@
|
||||
<key>PostNotification</key>
|
||||
<string>com.yaypixxo.kage/preferences.changed</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>footerText</key>
|
||||
<string></string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSSwitchCell</string>
|
||||
@ -48,7 +48,7 @@
|
||||
<key>key</key>
|
||||
<string>gridSwitcher</string>
|
||||
<key>label</key>
|
||||
<string>Enable Grid Switcher</string>
|
||||
<string>Enable Grid Switcher*</string>
|
||||
<key>PostNotification</key>
|
||||
<string>com.yaypixxo.kage/preferences.changed</string>
|
||||
</dict>
|
||||
@ -80,6 +80,20 @@
|
||||
<key>PostNotification</key>
|
||||
<string>com.yaypixxo.kage/preferences.changed</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSGroupCell</string>
|
||||
<key>footerText</key>
|
||||
<string>* requires respring</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>cell</key>
|
||||
<string>PSButtonCell</string>
|
||||
<key>action</key>
|
||||
<string>saveTapped</string>
|
||||
<key>label</key>
|
||||
<string>Respring</string>
|
||||
</dict>
|
||||
</array>
|
||||
<key>title</key>
|
||||
<string>Kage</string>
|
||||
|
Reference in New Issue
Block a user