mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-31 08:08:19 +08:00
opt dyn jump
tweak Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/foundation.dart' show kDebugMode;
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:logger/logger.dart';
|
||||
import 'package:path/path.dart' as p;
|
||||
import 'package:path_provider/path_provider.dart';
|
||||
@@ -50,7 +48,7 @@ Future<bool> clearLogs() async {
|
||||
try {
|
||||
await file.writeAsString('');
|
||||
} catch (e) {
|
||||
if (kDebugMode) debugPrint('Error clearing file: $e');
|
||||
// if (kDebugMode) debugPrint('Error clearing file: $e');
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
|
||||
@@ -4,7 +4,6 @@ import 'dart:io';
|
||||
|
||||
import 'package:PiliPlus/plugin/pl_player/controller.dart';
|
||||
import 'package:PiliPlus/plugin/pl_player/models/play_status.dart';
|
||||
import 'package:flutter/foundation.dart' show kDebugMode;
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_smart_dialog/flutter_smart_dialog.dart';
|
||||
|
||||
@@ -73,7 +72,7 @@ class ShutdownTimerService with WidgetsBindingObserver {
|
||||
|
||||
void _showShutdownDialog() {
|
||||
if (isInBackground) {
|
||||
if (kDebugMode) debugPrint("app在后台运行,不弹窗");
|
||||
// if (kDebugMode) debugPrint("app在后台运行,不弹窗");
|
||||
_executeShutdown();
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user