Unify games import
This commit is contained in:
@@ -8,49 +8,54 @@ ShortcutsWindow help_overlay {
|
||||
max-height: 10;
|
||||
|
||||
ShortcutsGroup {
|
||||
title: C_("shortcut window", "General");
|
||||
title: C_("shortcuts window", "General");
|
||||
|
||||
ShortcutsShortcut {
|
||||
title: C_("shortcut window", "Quit");
|
||||
title: C_("shortcuts window", "Quit");
|
||||
action-name: "app.quit";
|
||||
}
|
||||
|
||||
ShortcutsShortcut {
|
||||
title: C_("shortcut window", "Search");
|
||||
title: C_("shortcuts window", "Search");
|
||||
action-name: "win.toggle_search";
|
||||
}
|
||||
|
||||
ShortcutsShortcut {
|
||||
title: C_("shortcut window", "Show preferences");
|
||||
title: C_("shortcuts window", "Show preferences");
|
||||
action-name: "app.preferences";
|
||||
}
|
||||
|
||||
ShortcutsShortcut {
|
||||
title: C_("shortcut window", "Shortcuts");
|
||||
title: C_("shortcuts window", "Shortcuts");
|
||||
action-name: "win.show-help-overlay";
|
||||
}
|
||||
|
||||
ShortcutsShortcut {
|
||||
title: C_("shortcut window", "Undo");
|
||||
title: C_("shortcuts window", "Undo");
|
||||
action-name: "win.undo_remove";
|
||||
}
|
||||
|
||||
ShortcutsShortcut {
|
||||
title: C_("shortcut window", "Open menu");
|
||||
title: C_("shortcuts window", "Open menu");
|
||||
action-name: "win.open_menu";
|
||||
}
|
||||
}
|
||||
|
||||
ShortcutsGroup {
|
||||
title: C_("shortcut window", "Games");
|
||||
title: C_("shortcuts window", "Games");
|
||||
|
||||
ShortcutsShortcut {
|
||||
title: C_("shortcut window", "Add new game");
|
||||
title: C_("shortcuts window", "Add new game");
|
||||
action-name: "app.add_game";
|
||||
}
|
||||
|
||||
ShortcutsShortcut {
|
||||
title: C_("shortcut window", "Show hidden games");
|
||||
title: C_("shortcuts window", "Import games");
|
||||
action-name: "app.import";
|
||||
}
|
||||
|
||||
ShortcutsShortcut {
|
||||
title: C_("shortcuts window", "Show hidden games");
|
||||
action-name: "win.show_hidden";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3,7 +3,7 @@ using Adw 1;
|
||||
|
||||
template PreferencesWindow : Adw.PreferencesWindow {
|
||||
search-enabled: false;
|
||||
default-height: 550;
|
||||
default-height: 500;
|
||||
|
||||
Adw.PreferencesPage page {
|
||||
Adw.PreferencesGroup general_group {
|
||||
@@ -39,6 +39,14 @@ template PreferencesWindow : Adw.PreferencesWindow {
|
||||
Adw.PreferencesGroup steam_group {
|
||||
title: _("Steam");
|
||||
|
||||
Adw.ActionRow {
|
||||
title: _("Import From Steam");
|
||||
|
||||
Switch steam_switch {
|
||||
valign: center;
|
||||
}
|
||||
}
|
||||
|
||||
Adw.ActionRow {
|
||||
title: _("Steam Install Location");
|
||||
subtitle: _("Directory to use when importing games");
|
||||
@@ -77,6 +85,14 @@ template PreferencesWindow : Adw.PreferencesWindow {
|
||||
Adw.PreferencesGroup heroic_group {
|
||||
title: _("Heroic");
|
||||
|
||||
Adw.ActionRow {
|
||||
title: _("Import From Heroic");
|
||||
|
||||
Switch heroic_switch {
|
||||
valign: center;
|
||||
}
|
||||
}
|
||||
|
||||
Adw.ActionRow {
|
||||
title: _("Heroic Install Location");
|
||||
subtitle: _("Directory to use when importing games");
|
||||
@@ -115,6 +131,14 @@ template PreferencesWindow : Adw.PreferencesWindow {
|
||||
Adw.PreferencesGroup bottles_group {
|
||||
title: _("Bottles");
|
||||
|
||||
Adw.ActionRow {
|
||||
title: _("Import From Bottles");
|
||||
|
||||
Switch bottles_switch {
|
||||
valign: center;
|
||||
}
|
||||
}
|
||||
|
||||
Adw.ActionRow {
|
||||
title: _("Bottles Install Location");
|
||||
subtitle: _("Directory to use when importing games");
|
||||
|
||||
@@ -384,23 +384,9 @@ menu add_games {
|
||||
}
|
||||
}
|
||||
section {
|
||||
submenu {
|
||||
label: _("Import from");
|
||||
item {
|
||||
label: _("Steam");
|
||||
action: "app.steam_import";
|
||||
}
|
||||
|
||||
item {
|
||||
label: _("Heroic");
|
||||
action: "app.heroic_import";
|
||||
}
|
||||
|
||||
item {
|
||||
label: _("Bottles");
|
||||
action: "app.bottles_import";
|
||||
hidden-when: "action-disabled";
|
||||
}
|
||||
item {
|
||||
label: _("Import");
|
||||
action: "app.import";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,12 +10,18 @@
|
||||
<key name="high-quality-images" type="b">
|
||||
<default>false</default>
|
||||
</key>
|
||||
<key name="steam" type="b">
|
||||
<default>true</default>
|
||||
</key>
|
||||
<key name="steam-location" type="s">
|
||||
<default>"~/.steam/"</default>
|
||||
</key>
|
||||
<key name="steam-extra-dirs" type="as">
|
||||
<default>[]</default>
|
||||
</key>
|
||||
<key name="heroic" type="b">
|
||||
<default>true</default>
|
||||
</key>
|
||||
<key name="heroic-location" type="s">
|
||||
<default>"~/.var/app/com.heroicgameslauncher.hgl/config/heroic/"</default>
|
||||
</key>
|
||||
@@ -28,6 +34,9 @@
|
||||
<key name="heroic-import-sideload" type="b">
|
||||
<default>true</default>
|
||||
</key>
|
||||
<key name="bottles" type="b">
|
||||
<default>true</default>
|
||||
</key>
|
||||
<key name="bottles-location" type="s">
|
||||
<default>"~/.var/app/com.usebottles.bottles/data/bottles/"</default>
|
||||
</key>
|
||||
|
||||
Reference in New Issue
Block a user