1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-09-22 06:53:30 +01:00
Ryujinx/Ryujinx.Ava/Ui/Controls
Ac_K a1ddaa2736
ui: Fixes disposing on GTK/Avalonia and Firmware Messages on Avalonia (#3885)
* ui: Only wait on _exitEvent when MainLoop is active under GTK

This fixes a dispose issue under Horizon/GTK, we don't check if the ApplicationClient is null so it throw NCE. We don't check if the main loop is active and waiting an event which is set in the main loop... So that could lead to a freeze.

Everything works fine in GTK now.

Related issue: https://github.com/Ryujinx/Ryujinx/issues/3873

As a side note, same kind of issue appear in Avalonia UI too. Firmware's popup doesn't show anything and the emulator just freeze.

* TSRBerry's change

Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>

* Fix Avalonia crashing/freezing

* Add Avalonia OpenGL fixes

* Fix firmware popup on windows

* Fixes everything

* Add _initialized bool to VulkanRenderer and OpenGL Window

Co-authored-by: TSRBerry <20988865+TSRBerry@users.noreply.github.com>
2022-11-24 15:08:27 +01:00
..
ApplicationOpenedEventArgs.cs
AvaloniaGlxContext.cs
AvaloniaWglContext.cs
BitmapArrayValueConverter.cs
ButtonKeyAssigner.cs
ContentDialogHelper.cs Avalonia: Use overlay dialog for controller applet (#3777) 2022-10-23 11:15:45 +02:00
EmbeddedWindow.cs Avalonia - Use embedded window for avalonia (#3674) 2022-09-19 15:05:26 -03:00
GameGridView.axaml Avalonia: Another Cleanup (#3494) 2022-07-29 00:41:34 +02:00
GameGridView.axaml.cs
GameListView.axaml Avalonia: Another Cleanup (#3494) 2022-07-29 00:41:34 +02:00
GameListView.axaml.cs
Glyph.cs
GlyphValueConverter.cs
HotKeyControl.cs
IGlContextExtension.cs
InputDialog.axaml
InputDialog.axaml.cs Removed unused usings. (#3593) 2022-08-18 18:04:54 +02:00
KeyValueConverter.cs
MiniCommand.cs
NavigationDialogHost.axaml
NavigationDialogHost.axaml.cs
OffscreenTextBox.cs
OpenGLEmbeddedWindow.cs ui: Fixes disposing on GTK/Avalonia and Firmware Messages on Avalonia (#3885) 2022-11-24 15:08:27 +01:00
OpenToolkitBindingsContext.cs
ProfileImageSelectionDialog.axaml
ProfileImageSelectionDialog.axaml.cs Avalonia - Use content dialog for user profile manager (#3455) 2022-07-24 14:38:38 -03:00
RendererHost.axaml Avalonia - Use embedded window for avalonia (#3674) 2022-09-19 15:05:26 -03:00
RendererHost.axaml.cs Avalonia - Use embedded window for avalonia (#3674) 2022-09-19 15:05:26 -03:00
RenderTimer.cs
SPBOpenGLContext.cs
UpdateWaitWindow.axaml
UpdateWaitWindow.axaml.cs Removed unused usings. (#3593) 2022-08-18 18:04:54 +02:00
UserEditor.axaml Avalonia: Cleanup UserEditor a bit (#3492) 2022-07-28 14:16:23 -03:00
UserEditor.axaml.cs Avalonia: Cleanup UserEditor a bit (#3492) 2022-07-28 14:16:23 -03:00
UserErrorDialog.cs
UserResult.cs
UserSelector.axaml Avalonia: Cleanup UserEditor a bit (#3492) 2022-07-28 14:16:23 -03:00
UserSelector.axaml.cs Avalonia: Cleanup UserEditor a bit (#3492) 2022-07-28 14:16:23 -03:00
VulkanEmbeddedWindow.cs Avalonia - Use embedded window for avalonia (#3674) 2022-09-19 15:05:26 -03:00
Win32NativeInterop.cs Avalonia - Use embedded window for avalonia (#3674) 2022-09-19 15:05:26 -03:00