mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-18 05:25:46 +00:00
Avoid Linux minimize hangs and remove async warning
This commit is contained in:
parent
0be2401635
commit
07903628f1
2 changed files with 3 additions and 3 deletions
|
|
@ -156,7 +156,7 @@ public class ProfilesViewModel : MyReactiveObject
|
||||||
{
|
{
|
||||||
await MoveServer(EMove.Bottom);
|
await MoveServer(EMove.Bottom);
|
||||||
}, canEditRemove);
|
}, canEditRemove);
|
||||||
MoveToGroupCmd = ReactiveCommand.CreateFromTask<SubItem>(async sub =>
|
MoveToGroupCmd = ReactiveCommand.Create<SubItem>(sub =>
|
||||||
{
|
{
|
||||||
SelectedMoveToGroup = sub;
|
SelectedMoveToGroup = sub;
|
||||||
});
|
});
|
||||||
|
|
|
||||||
|
|
@ -441,7 +441,7 @@ public partial class MainWindow : WindowBase<MainWindowViewModel>
|
||||||
|
|
||||||
private void BtnLinuxMinimize_Click(object? sender, RoutedEventArgs e)
|
private void BtnLinuxMinimize_Click(object? sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
WindowState = WindowState.Minimized;
|
HideToTray();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void BtnLinuxMaximizeRestore_Click(object? sender, RoutedEventArgs e)
|
private void BtnLinuxMaximizeRestore_Click(object? sender, RoutedEventArgs e)
|
||||||
|
|
@ -510,7 +510,7 @@ public partial class MainWindow : WindowBase<MainWindowViewModel>
|
||||||
{
|
{
|
||||||
if (Utils.IsLinux() && _config.UiItem.Hide2TrayWhenClose == false)
|
if (Utils.IsLinux() && _config.UiItem.Hide2TrayWhenClose == false)
|
||||||
{
|
{
|
||||||
WindowState = WindowState.Minimized;
|
HideToTray();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue