feat: UnP4kc fix missing runtime

close https://github.com/StarCitizenToolBox/app/issues/27
This commit is contained in:
2024-05-06 20:21:35 +08:00
parent b965c6262f
commit 34d1007e30
3 changed files with 49 additions and 23 deletions

View File

@ -594,18 +594,6 @@ class ToolsUIModel extends _$ToolsUIModel {
}
static rsiEnhance(BuildContext context) async {
final userOK = await showConfirmDialogs(
context,
S.current.tools_rsi_launcher_enhance_note_title,
Column(
mainAxisSize: MainAxisSize.min,
children: [
Text(S.current.tools_rsi_launcher_enhance_note_msg),
],
),
constraints:
BoxConstraints(maxWidth: MediaQuery.of(context).size.width * .55));
if (!userOK) return;
if ((await SystemHelper.getPID("\"RSI Launcher\"")).isNotEmpty) {
if (!context.mounted) return;
showToast(