Change the accelerators- ctrl-I for installed games, ctrl-H for hidden.

This commit is contained in:
Daniel Johnson 2022-07-02 06:54:24 -04:00 committed by Mathieu Comandon
parent 74ce7b1d70
commit 7e4b0e2bd0
2 changed files with 4 additions and 2 deletions

View file

@ -135,7 +135,7 @@ class LutrisWindow(Gtk.ApplicationWindow): # pylint: disable=too-many-public-me
self.on_show_installed_state_change,
type="b",
default=self.filter_installed,
accel="<Primary>h",
accel="<Primary>i",
),
"toggle-viewtype": Action(self.on_toggle_viewtype),
"icon-type": Action(self.on_icontype_state_change, type="s", default=self.icon_type),
@ -155,6 +155,7 @@ class LutrisWindow(Gtk.ApplicationWindow): # pylint: disable=too-many-public-me
self.hidden_state_change,
type="b",
default=self.show_hidden_games,
accel="<Primary>h",
),
"open-forums": Action(lambda *x: open_uri("https://forums.lutris.net/")),
"open-discord": Action(lambda *x: open_uri("https://discord.gg/Pnt5CuY")),

View file

@ -454,7 +454,7 @@
<property name="receives-default">False</property>
<property name="action-name">win.show-installed-only</property>
<property name="text" translatable="yes">_Installed Games Only</property>
<accelerator key="h" signal="clicked" modifiers="GDK_CONTROL_MASK"/>
<accelerator key="i" signal="clicked" modifiers="GDK_CONTROL_MASK"/>
</object>
<packing>
<property name="expand">False</property>
@ -469,6 +469,7 @@
<property name="receives-default">False</property>
<property name="action-name">win.show-hidden-games</property>
<property name="text" translatable="yes">Show _Hidden Games</property>
<accelerator key="h" signal="clicked" modifiers="GDK_CONTROL_MASK"/>
</object>
<packing>
<property name="expand">False</property>