remove boolext

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-05-30 22:19:32 +08:00
parent 3031d5e3b0
commit a260b1640a
55 changed files with 185 additions and 257 deletions

View File

@@ -160,10 +160,8 @@ class PageUtils {
...[
...[
...scheduleTimeChoices,
if (scheduleTimeChoices
.contains(
shutdownTimerService.scheduledExitInMinutes)
.not)
if (!scheduleTimeChoices.contains(
shutdownTimerService.scheduledExitInMinutes))
shutdownTimerService.scheduledExitInMinutes,
]..sort(),
-1,
@@ -193,7 +191,7 @@ class PageUtils {
child: Divider(height: 1),
),
),
if (isLive.not) ...[
if (!isLive) ...[
const SizedBox(height: 10),
ListTile(
dense: true,
@@ -586,8 +584,8 @@ class PageUtils {
bool inApp = false,
Map? parameters,
}) async {
if (inApp.not && GStorage.openInBrowser) {
if ((await PiliScheme.routePushFromUrl(url, selfHandle: true)).not) {
if (!inApp && GStorage.openInBrowser) {
if (!await PiliScheme.routePushFromUrl(url, selfHandle: true)) {
launchURL(url);
}
} else {