mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2025-12-18 13:37:00 +00:00
UI: Improve "Show Changelog" button in the updater
Now it no longer causes the dialog to disappear (which then promptly re-appears so you can click yes/no to accept/deny the update)
This commit is contained in:
parent
e8751e1c40
commit
862a686c5e
4 changed files with 164 additions and 43 deletions
40
src/Ryujinx/UI/Helpers/ControlExtensions.cs
Normal file
40
src/Ryujinx/UI/Helpers/ControlExtensions.cs
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
using Avalonia.Controls;
|
||||
|
||||
namespace Ryujinx.Ava.UI.Helpers
|
||||
{
|
||||
public static class ControlExtensions
|
||||
{
|
||||
extension(Control ctrl)
|
||||
{
|
||||
public int GridRow
|
||||
{
|
||||
get => Grid.GetRow(ctrl);
|
||||
set => Grid.SetRow(ctrl, value);
|
||||
}
|
||||
|
||||
public int GridColumn
|
||||
{
|
||||
get => Grid.GetColumn(ctrl);
|
||||
set => Grid.SetColumn(ctrl, value);
|
||||
}
|
||||
|
||||
public int GridRowSpan
|
||||
{
|
||||
get => Grid.GetRowSpan(ctrl);
|
||||
set => Grid.SetRowSpan(ctrl, value);
|
||||
}
|
||||
|
||||
public int GridColumnSpan
|
||||
{
|
||||
get => Grid.GetColumnSpan(ctrl);
|
||||
set => Grid.SetColumnSpan(ctrl, value);
|
||||
}
|
||||
|
||||
public bool GridIsSharedSizeScope
|
||||
{
|
||||
get => Grid.GetIsSharedSizeScope(ctrl);
|
||||
set => Grid.SetIsSharedSizeScope(ctrl, value);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue