Open UranusDarkness opened 2 years ago
It seems like it closes the application because I don't have an active window at that moment, since I'm using them in App.xaml. Is there a way to do so?
New update: by debugging several times, I discovered that when it calls autoUpdateWindow.Show(), it raises the OnExit event of the App.xaml Still looking for a way to fix this tho
I'm not sure this is specific to AdonisUI. This can happen when opening/closing a dialog when you don't have a main window open. Your best bet would be to enable explicit shutdown using the Application.Shutdown property: https://docs.microsoft.com/en-us/dotnet/api/system.windows.shutdownmode?view=windowsdesktop-6.0#system-windows-shutdownmode-onexplicitshutdown
I'm trying to use the AdonisUI.Controls.MessageBox for my AutoUpdater, but even though the result is true in the if statement, the code keeps going on until the OnExit event. For example: I click on Yes when it asks me to update, and instead of showing the Window, it closes the application