tasks: fix shortcut creation logic

This commit is contained in:
liushuyu 2022-03-29 23:19:40 -06:00
parent 0decda8232
commit d194ed5dd5
No known key found for this signature in database
GPG key ID: 23D1CE4534419437
2 changed files with 2 additions and 9 deletions

View file

@ -15,8 +15,6 @@ use wry::{
use log::Level; use log::Level;
use crate::logging::LoggingErrors;
/// Starts the main web UI. Will return when UI is closed. /// 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<()> { pub fn start_ui(app_name: &str, http_address: &str, is_launcher: bool) -> Result<()> {
#[cfg(windows)] #[cfg(windows)]

View file

@ -3,7 +3,7 @@
use crate::installer::InstallerFramework; use crate::installer::InstallerFramework;
use crate::tasks::download_pkg::DownloadPackageTask; 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::save_database::SaveDatabaseTask;
use crate::tasks::uninstall_pkg::UninstallPackageTask; use crate::tasks::uninstall_pkg::UninstallPackageTask;
use crate::tasks::Task; use crate::tasks::Task;
@ -196,12 +196,7 @@ impl Task for InstallPackageTask {
optional: true, optional: true,
}), }),
), ),
TaskDependency::build( TaskDependency::build(TaskOrdering::Post, Box::new(InstallGlobalShortcutsTask {})),
TaskOrdering::Post,
Box::new(InstallShortcutsTask {
name: self.name.clone(),
}),
),
TaskDependency::build( TaskDependency::build(
TaskOrdering::Post, TaskOrdering::Post,
Box::new(InstallDesktopShortcutTask { Box::new(InstallDesktopShortcutTask {