mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-12-23 01:15:34 +00:00
tasks: fix shortcut creation logic
This commit is contained in:
parent
0decda8232
commit
d194ed5dd5
|
@ -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)]
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue