dart: fix

This commit is contained in:
2025-08-15 22:52:13 +08:00
parent 44bf771f4c
commit 99104527d4
30 changed files with 57 additions and 56 deletions

View File

@@ -116,7 +116,7 @@ class SettingsUIModel extends _$SettingsUIModel {
}
}
_saveCustomPath(String pathKey, String dir) async {
Future<void> _saveCustomPath(String pathKey, String dir) async {
final confBox = await Hive.openBox("app_conf");
await confBox.put(pathKey, dir);
}
@@ -210,7 +210,7 @@ class SettingsUIModel extends _$SettingsUIModel {
_initState();
}
showLogs() async {
Future<void> showLogs() async {
SystemHelper.openDir(getDPrintFile()?.absolute.path.replaceAll("/", "\\"),
isFile: true);
}