ryujinx/Ryujinx/Ui
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
..
Applet Avalonia UI - Part 1 (#3270) 2022-05-15 13:30:15 +02:00
Helper Update units of memory from decimal to binary prefixes (#3716) 2022-11-16 23:27:42 +01:00
Widgets Update PPTC dialog text to match label and tooltip (#3618) 2022-08-24 08:25:49 +00:00
Windows Reword the description of the 6GB expand DRAM hack to be less tantalizing (#3870) 2022-11-20 17:15:57 +00:00
GLRenderer.cs Avalonia - Use embedded window for avalonia (#3674) 2022-09-19 15:05:26 -03:00
MainWindow.cs ui: Fixes disposing on GTK/Avalonia and Firmware Messages on Avalonia (#3885) 2022-11-24 15:08:27 +01:00
MainWindow.glade Vulkan backend (#2518) 2022-07-31 18:26:06 -03:00
OpenToolkitBindingsContext.cs
RendererWidgetBase.cs ui: Fixes disposing on GTK/Avalonia and Firmware Messages on Avalonia (#3885) 2022-11-24 15:08:27 +01:00
SPBOpenGLContext.cs Removed unused usings. (#3593) 2022-08-18 18:04:54 +02:00
StatusUpdatedEventArgs.cs Vulkan backend (#2518) 2022-07-31 18:26:06 -03:00
VKRenderer.cs ui: Fixes disposing on GTK/Avalonia and Firmware Messages on Avalonia (#3885) 2022-11-24 15:08:27 +01:00