aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Ava/UI/Controls/UpdateWaitWindow.axaml.cs
diff options
context:
space:
mode:
authorTSRBerry <20988865+TSRBerry@users.noreply.github.com>2023-04-16 09:09:02 +0200
committerGitHub <noreply@github.com>2023-04-16 07:09:02 +0000
commit6dbcdfea47e60aadefd59a75e43549793481f853 (patch)
tree84122acbd9faffca6894f32a69e108edcf0fba9a /Ryujinx.Ava/UI/Controls/UpdateWaitWindow.axaml.cs
parentc5258cf082b10f335f81487f22b7eeb86075e09e (diff)
Ava: Fix nca extraction window never closing & minor cleanup (#4569)1.1.712
* ava: Remove unused doWhileDeferred parameters * ava: Minimally improve swkbd dialog It's currently impossible to get the dialog to redirect focus to the InputBox. * ava: Fix nca extraction dialog never closing Also contains some minor cleanup
Diffstat (limited to 'Ryujinx.Ava/UI/Controls/UpdateWaitWindow.axaml.cs')
-rw-r--r--Ryujinx.Ava/UI/Controls/UpdateWaitWindow.axaml.cs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Ryujinx.Ava/UI/Controls/UpdateWaitWindow.axaml.cs b/Ryujinx.Ava/UI/Controls/UpdateWaitWindow.axaml.cs
index 9db7b5d4..80a437e3 100644
--- a/Ryujinx.Ava/UI/Controls/UpdateWaitWindow.axaml.cs
+++ b/Ryujinx.Ava/UI/Controls/UpdateWaitWindow.axaml.cs
@@ -1,15 +1,26 @@
using Avalonia.Controls;
using Ryujinx.Ava.UI.Windows;
+using System.Threading;
namespace Ryujinx.Ava.UI.Controls
{
public partial class UpdateWaitWindow : StyleableWindow
{
+ public UpdateWaitWindow(string primaryText, string secondaryText, CancellationTokenSource cancellationToken) : this(primaryText, secondaryText)
+ {
+ SystemDecorations = SystemDecorations.Full;
+ ShowInTaskbar = true;
+
+ Closing += (_, _) => cancellationToken.Cancel();
+ }
+
public UpdateWaitWindow(string primaryText, string secondaryText) : this()
{
PrimaryText.Text = primaryText;
SecondaryText.Text = secondaryText;
WindowStartupLocation = WindowStartupLocation.CenterOwner;
+ SystemDecorations = SystemDecorations.BorderOnly;
+ ShowInTaskbar = false;
}
public UpdateWaitWindow()