Add option to always launch through heroic (#156)

* Add option to always launch through heroic

* Default to launche through heroic
This commit is contained in:
Philip Kristoffersen
2022-05-24 19:46:12 +02:00
committed by GitHub
parent 5a26eec796
commit 5e8e4f2451
4 changed files with 66 additions and 46 deletions
+10 -5
View File
@@ -138,17 +138,22 @@ impl HeroicPlatform {
if let Some(shortcuts) = shortcuts.as_mut() {
for shortcut in shortcuts {
shortcut.install_mode = Some(install_mode.clone());
if self
let game_in_list = self
.settings
.launch_games_through_heroic
.contains(&shortcut.app_name)
|| self
.settings
.launch_games_through_heroic
.contains(&shortcut.title)
{
shortcut.launch_through_heroic = true;
}
.contains(&shortcut.title);
shortcut.launch_through_heroic =
if self.settings.default_launch_through_heroic {
!game_in_list
} else {
game_in_list
};
}
}
shortcuts