diff --git a/Cargo.lock b/Cargo.lock index 159eee6e5..0bc360fe7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2559,7 +2559,7 @@ dependencies = [ [[package]] name = "impersonate_system" version = "0.1.0" -source = "git+https://github.com/21pages/impersonate-system#af4a82050580217a434c2024e181a98de24823ec" +source = "git+https://github.com/21pages/impersonate-system#c48f37a8fd17413b2a4ba655c3873bdc5c8d25aa" dependencies = [ "cc", ] diff --git a/flutter/lib/desktop/pages/desktop_home_page.dart b/flutter/lib/desktop/pages/desktop_home_page.dart index b65525159..152463c68 100644 --- a/flutter/lib/desktop/pages/desktop_home_page.dart +++ b/flutter/lib/desktop/pages/desktop_home_page.dart @@ -412,15 +412,6 @@ class _DesktopHomePageState extends State @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(() {}); diff --git a/src/core_main.rs b/src/core_main.rs index 8c6430ef8..46088da5c 100644 --- a/src/core_main.rs +++ b/src/core_main.rs @@ -85,11 +85,6 @@ pub fn core_main() -> Option> { .ok(); } } - #[cfg(windows)] - #[cfg(not(debug_assertions))] - if !crate::platform::is_installed() && args.is_empty() { - crate::platform::elevate_or_run_as_system(is_setup, _is_elevate, _is_run_as_system); - } if args.is_empty() { std::thread::spawn(move || crate::start_server(false)); } else { diff --git a/src/ui/index.tis b/src/ui/index.tis index 45e881096..31781c35e 100644 --- a/src/ui/index.tis +++ b/src/ui/index.tis @@ -1242,9 +1242,3 @@ function refreshCurrentUser() { function getHttpHeaders() { return "Authorization: Bearer " + handler.get_local_option("access_token"); } - -$(body).timer(1000, function check_elevation(){ - if (is_win && handler.is_release() && !handler.is_installed() && !handler.is_root()) { - msgbox("custom-elevation-nocancel", "Prompt", "elevation_prompt"); - } -}); \ No newline at end of file