Merge pull request #1878 from 21pages/startup

fix flutter install hang
This commit is contained in:
RustDesk
2022-10-30 20:59:03 +08:00
committed by GitHub
6 changed files with 31 additions and 37 deletions

View File

@@ -412,15 +412,6 @@ class _DesktopHomePageState extends State<DesktopHomePage>
@override
void initState() {
super.initState();
Timer(const Duration(seconds: 1), () async {
final installed = bind.mainIsInstalled();
final root = await bind.mainIsRoot();
final release = await bind.mainIsRelease();
if (Platform.isWindows && release && !installed && !root) {
msgBox('custom-elevation-nocancel', 'Prompt', 'elevation_prompt', '',
gFFI.dialogManager);
}
});
Timer(const Duration(seconds: 5), () async {
updateUrl = await bind.mainGetSoftwareUpdateUrl();
if (updateUrl.isNotEmpty) setState(() {});