mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-16 12:35: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);
|
||||
}, canEditRemove);
|
||||
MoveToGroupCmd = ReactiveCommand.CreateFromTask<SubItem>(async sub =>
|
||||
MoveToGroupCmd = ReactiveCommand.Create<SubItem>(sub =>
|
||||
{
|
||||
SelectedMoveToGroup = sub;
|
||||
});
|
||||
|
|
|
|||
|
|
@ -441,7 +441,7 @@ public partial class MainWindow : WindowBase<MainWindowViewModel>
|
|||
|
||||
private void BtnLinuxMinimize_Click(object? sender, RoutedEventArgs e)
|
||||
{
|
||||
WindowState = WindowState.Minimized;
|
||||
HideToTray();
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
WindowState = WindowState.Minimized;
|
||||
HideToTray();
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue