mirror of
https://github.com/djibux/BoilR.git
synced 2026-09-01 14:03:42 +02:00
Add feature to disconnect a shortcut (#160)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user