mirror of
https://github.com/MaaAssistantArknights/MaaAssistantArknights.git
synced 2026-07-16 01:40:46 +08:00
chore: use "is" operator
This commit is contained in:
@@ -72,7 +72,7 @@ namespace MaaWpfGui.Helper
|
||||
// In Stylet, CreateWindow().WindowStartupLocation is CenterScreen or CenterOwner (if w.WSLoc == Manual && w.Left == NaN && w.Top == NaN && ...)
|
||||
window.WindowStartupLocation = WindowStartupLocation.Manual;
|
||||
|
||||
if (window.GetType() == typeof(RootView))
|
||||
if (window is RootView)
|
||||
{
|
||||
MoveWindowToDisplay(ScreenName, window);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user