From d194ed5dd509de9c5c0fb21779693684e26a0327 Mon Sep 17 00:00:00 2001 From: liushuyu Date: Tue, 29 Mar 2022 23:19:40 -0600 Subject: [PATCH] tasks: fix shortcut creation logic --- src/frontend/ui/mod.rs | 2 -- src/tasks/install_pkg.rs | 9 ++------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/src/frontend/ui/mod.rs b/src/frontend/ui/mod.rs index 2c7826d..9da3ca8 100644 --- a/src/frontend/ui/mod.rs +++ b/src/frontend/ui/mod.rs @@ -15,8 +15,6 @@ use wry::{ use log::Level; -use crate::logging::LoggingErrors; - /// Starts the main web UI. Will return when UI is closed. pub fn start_ui(app_name: &str, http_address: &str, is_launcher: bool) -> Result<()> { #[cfg(windows)] diff --git a/src/tasks/install_pkg.rs b/src/tasks/install_pkg.rs index 79a7ea3..68c179e 100644 --- a/src/tasks/install_pkg.rs +++ b/src/tasks/install_pkg.rs @@ -3,7 +3,7 @@ use crate::installer::InstallerFramework; use crate::tasks::download_pkg::DownloadPackageTask; -use crate::tasks::install_shortcuts::InstallShortcutsTask; +use crate::tasks::install_global_shortcut::InstallGlobalShortcutsTask; use crate::tasks::save_database::SaveDatabaseTask; use crate::tasks::uninstall_pkg::UninstallPackageTask; use crate::tasks::Task; @@ -196,12 +196,7 @@ impl Task for InstallPackageTask { optional: true, }), ), - TaskDependency::build( - TaskOrdering::Post, - Box::new(InstallShortcutsTask { - name: self.name.clone(), - }), - ), + TaskDependency::build(TaskOrdering::Post, Box::new(InstallGlobalShortcutsTask {})), TaskDependency::build( TaskOrdering::Post, Box::new(InstallDesktopShortcutTask {