mirror of
https://github.com/2dust/v2rayN.git
synced 2026-07-26 09:52:05 +03:00
fix: Desktop(Avalonia) 移除子对话框最小化按钮,仅禁 CanMinimize (#9526)
This commit is contained in:
@@ -6,6 +6,13 @@ public class WindowBase<TViewModel> : ReactiveWindow<TViewModel> where TViewMode
|
||||
{
|
||||
Initialized += OnWindowInitialized;
|
||||
Loaded += OnLoaded;
|
||||
Loaded += (s, e) =>
|
||||
{
|
||||
if (Owner != null && !ShowInTaskbar)
|
||||
{
|
||||
CanMinimize = false;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private void ReactiveWindowBase_Closed(object? sender, EventArgs e)
|
||||
|
||||
@@ -18,6 +18,8 @@ public partial class MessageBoxDialog : Window
|
||||
|
||||
btnYes.Click += BtnYes_Click;
|
||||
btnNo.Click += BtnNo_Click;
|
||||
|
||||
CanMinimize = false;
|
||||
}
|
||||
|
||||
private void BtnYes_Click(object? sender, RoutedEventArgs e)
|
||||
|
||||
Reference in New Issue
Block a user