Add feature to disconnect a shortcut (#160)

This commit is contained in:
Philip Kristoffersen
2022-05-27 20:58:22 +02:00
committed by GitHub
parent 835c7ead8d
commit f16646f540
19 changed files with 271 additions and 122 deletions
+2 -4
View File
@@ -57,10 +57,8 @@ fn get_shortcuts_from_games(games: Vec<(GogGame, PathBuf)>) -> Vec<GogShortcut>
if let Some(primary_task) = tasks.iter().find(|t| {
t.is_primary.unwrap_or_default()
&& t.task_type == "FileTask"
&& (
t.category.as_ref().unwrap_or(&String::from("")) == "launcher" ||
t.category.as_ref().unwrap_or(&String::from("")) == "game"
)
&& (t.category.as_ref().unwrap_or(&String::from("")) == "launcher"
|| t.category.as_ref().unwrap_or(&String::from("")) == "game")
}) {
if let Some(task_path) = &primary_task.path {
let full_path = game_folder.join(&task_path);