Skip to content

Commit

Permalink
调整设置界面
Browse files Browse the repository at this point in the history
  • Loading branch information
lemon4ex committed Mar 20, 2022
1 parent c2456b1 commit bf63a33
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tweak.x
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ static void publishNotification(NSString *sectionID, NSDate *date, NSString *mes
// 15 = banner and vibration things
[bbServer publishBulletin:bulletin destinations:15];
});
} else {
XLOG(@"bbServer publish bulletin failed");
}
} else {
if ([bbServer respondsToSelector:@selector(publishBulletin:destinations:alwaysToLockScreen:)]) {
Expand All @@ -112,6 +114,8 @@ static void publishNotification(NSString *sectionID, NSDate *date, NSString *mes
dispatch_sync(getBBServerQueue(), ^{
[bbServer publishBulletin:bulletin destinations:4];
});
} else {
XLOG(@"bbServer publish bulletin failed");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,17 @@
</dict>
<key>items</key>
<array>
<dict>
<key>cell</key>
<string>PSGroupCell</string>
<key>isStaticText</key>
<true/>
<key>label</key>
<string>选项</string>
<key>footerText</key>
<string>1. 启用插件后,设备接入电源时自动关闭锁屏功能。
2. 省电模式下系统会强制锁屏,插件可能无效果。</string>
</dict>
<dict>
<key>cell</key>
<string>PSSwitchCell</string>
Expand Down

0 comments on commit bf63a33

Please sign in to comment.