aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx/Ui/MainWindow.cs
diff options
context:
space:
mode:
authorooa113y <13thSlayer@gmail.com>2021-08-05 00:28:19 +0300
committerGitHub <noreply@github.com>2021-08-04 23:28:19 +0200
commit46ffc81d90bd3a8f2d24c2997166d22f12ecbbb6 (patch)
tree7342e41c98a2af5317c4369c5c78cd16b5f18d84 /Ryujinx/Ui/MainWindow.cs
parent5ceaf344ce02931da897c943048b5e653050038b (diff)
Hide UI rework/arrow key fix (#2504)
* Unbreak arrow keys * Use bitshift for Flags instead of literal
Diffstat (limited to 'Ryujinx/Ui/MainWindow.cs')
-rw-r--r--Ryujinx/Ui/MainWindow.cs12
1 files changed, 3 insertions, 9 deletions
diff --git a/Ryujinx/Ui/MainWindow.cs b/Ryujinx/Ui/MainWindow.cs
index 387ae63a..8e579e78 100644
--- a/Ryujinx/Ui/MainWindow.cs
+++ b/Ryujinx/Ui/MainWindow.cs
@@ -101,6 +101,7 @@ namespace Ryujinx.Ui
[GUI] MenuItem _simulateWakeUpMessage;
[GUI] MenuItem _scanAmiibo;
[GUI] MenuItem _takeScreenshot;
+ [GUI] MenuItem _hideUi;
[GUI] MenuItem _fullScreen;
[GUI] CheckMenuItem _startFullScreen;
[GUI] CheckMenuItem _favToggle;
@@ -243,6 +244,8 @@ namespace Ryujinx.Ui
_gameTable.SearchColumn = 2;
_gameTable.SearchEqualFunc = (model, col, key, iter) => !((string)model.GetValue(iter, col)).Contains(key, StringComparison.InvariantCultureIgnoreCase);
+ _hideUi.Label = _hideUi.Label.Replace("SHOWUIKEY", ConfigurationState.Instance.Hid.Hotkeys.Value.ShowUi.ToString());
+
UpdateColumns();
UpdateGameTable();
@@ -1072,15 +1075,6 @@ namespace Ryujinx.Ui
ConfigurationState.Instance.Graphics.AspectRatio.Value = ((int)aspectRatio + 1) > Enum.GetNames(typeof(AspectRatio)).Length - 1 ? AspectRatio.Fixed4x3 : aspectRatio + 1;
}
- private void Focus_Menu_Bar(object sender, KeyReleaseEventArgs args)
- {
- if (args.Event.Key == Gdk.Key.Alt_L)
- {
- ToggleExtraWidgets(true);
- _menuBar.GrabFocus();
- }
- }
-
private void Row_Clicked(object sender, ButtonReleaseEventArgs args)
{
if (args.Event.Button != 3 /* Right Click */)