mirror of
https://ghfast.top/https://github.com/StarCitizenToolBox/app.git
synced 2025-06-28 11:24:46 +08:00
fix
This commit is contained in:
@ -1,4 +1,3 @@
|
||||
import 'package:flutter_tilt/flutter_tilt.dart';
|
||||
import 'package:font_awesome_flutter/font_awesome_flutter.dart';
|
||||
import 'package:starcitizen_doctor/base/ui.dart';
|
||||
import 'package:starcitizen_doctor/common/conf/app_conf.dart';
|
||||
|
@ -72,17 +72,25 @@ class ToolsUIModel extends BaseUIModel {
|
||||
"以管理员身份运行RSI启动器,可能会解决一些问题。\n\n若设置了能效核心屏蔽参数,也会在此应用。",
|
||||
const Icon(FluentIcons.admin, size: 28),
|
||||
onTap: _adminRSILauncher,
|
||||
)
|
||||
),
|
||||
if (scInstalledPath != "")
|
||||
_ToolsItemData(
|
||||
"game_log_select",
|
||||
"游戏 Game.log 查看",
|
||||
"打开 Game.log 所在文件夹",
|
||||
const Icon(FontAwesomeIcons.bookBible, size: 28),
|
||||
onTap: _selectGameLog,
|
||||
),
|
||||
];
|
||||
isItemLoading = true;
|
||||
items.add(await _addShaderCard());
|
||||
notifyListeners();
|
||||
items.add(await _addPhotographyCard());
|
||||
notifyListeners();
|
||||
items.addAll(await _addLogCard());
|
||||
notifyListeners();
|
||||
items.addAll(await _addNvmePatchCard());
|
||||
notifyListeners();
|
||||
items.add(await _addShaderCard());
|
||||
notifyListeners();
|
||||
items.add(await _addPhotographyCard());
|
||||
// close loading
|
||||
isItemLoading = false;
|
||||
notifyListeners();
|
||||
@ -301,6 +309,10 @@ class ToolsUIModel extends BaseUIModel {
|
||||
working = false;
|
||||
}
|
||||
|
||||
Future<void> _selectGameLog() async {
|
||||
openDir("$scInstalledPath\\Game.log");
|
||||
}
|
||||
|
||||
Future<void> _selectLog() async {
|
||||
final path = await SCLoggerHelper.getLogFilePath();
|
||||
if (path == null) return;
|
||||
|
Reference in New Issue
Block a user