mirror of
https://github.com/StarCitizenToolBox/app.git
synced 2026-02-12 10:10:23 +00:00
feat: Migrate more PowerShell calls to Rust implementation
This commit is contained in:
11
lib/app.dart
11
lib/app.dart
@@ -22,7 +22,6 @@ import 'package:window_manager/window_manager.dart';
|
||||
import 'api/analytics.dart';
|
||||
import 'api/api.dart';
|
||||
import 'common/conf/url_conf.dart';
|
||||
import 'common/helper/system_helper.dart';
|
||||
import 'common/io/rs_http.dart';
|
||||
import 'common/rust/frb_generated.dart';
|
||||
import 'common/rust/api/win32_api.dart' as win32;
|
||||
@@ -148,16 +147,6 @@ class AppGlobalModel extends _$AppGlobalModel {
|
||||
exit(0);
|
||||
}
|
||||
|
||||
// init powershell
|
||||
if (Platform.isWindows) {
|
||||
try {
|
||||
await SystemHelper.initPowershellPath();
|
||||
dPrint("---- Powershell init -----");
|
||||
} catch (e) {
|
||||
dPrint("powershell init failed : $e");
|
||||
}
|
||||
}
|
||||
|
||||
// get windows info
|
||||
WindowsDeviceInfo? windowsDeviceInfo;
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user