mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2024-11-15 17:45:26 +00:00
6dbcdfea47
* 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
31 lines
967 B
C#
31 lines
967 B
C#
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()
|
|
{
|
|
InitializeComponent();
|
|
}
|
|
}
|
|
} |