mirror of
https://github.com/2dust/v2rayN.git
synced 2026-11-11 23:15:01 +03:00
@@ -739,7 +739,10 @@ public partial class MainWindowViewModel : MyReactiveObject
|
|||||||
RxSchedulers.MainThreadScheduler.Schedule(() =>
|
RxSchedulers.MainThreadScheduler.Schedule(() =>
|
||||||
{
|
{
|
||||||
ShowClashUI = showClashUI;
|
ShowClashUI = showClashUI;
|
||||||
TabMainSelectedIndex = showClashUI ? TabMainSelectedIndex : 0;
|
if (!showClashUI || TabMainSelectedIndex < 0)
|
||||||
|
{
|
||||||
|
TabMainSelectedIndex = 0;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -447,19 +447,6 @@ public partial class MainWindow : WindowBase<MainWindowViewModel>
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
//// workaround
|
|
||||||
//Task.Run(async () =>
|
|
||||||
//{
|
|
||||||
// await Task.Delay(5000);
|
|
||||||
// Dispatcher.UIThread.Post(() =>
|
|
||||||
// {
|
|
||||||
// ViewModel?.TabMainSelectedIndex = 0;
|
|
||||||
// tabMain.SelectedIndex = 0;
|
|
||||||
// tabMain1.SelectedIndex = 0;
|
|
||||||
// tabMain2.SelectedIndex = 0;
|
|
||||||
// });
|
|
||||||
//});
|
|
||||||
|
|
||||||
RestoreUI();
|
RestoreUI();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user