mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-03-10 22:44:21 +00:00
bring window to front if already open
This commit is contained in:
parent
dbd577c6b0
commit
f730f65aaf
@ -138,6 +138,8 @@ namespace WinUI
|
|||||||
netListLocation.X = netListView.Left;
|
netListLocation.X = netListView.Left;
|
||||||
netListLocation.Y = netListView.Top;
|
netListLocation.Y = netListView.Top;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
netListView.Activate();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void ShowNetworksClosed(object sender, System.EventArgs e)
|
private void ShowNetworksClosed(object sender, System.EventArgs e)
|
||||||
@ -169,6 +171,10 @@ namespace WinUI
|
|||||||
joinNetLocation.Y = joinNetView.Top;
|
joinNetLocation.Y = joinNetView.Top;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
joinNetView.Activate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void JoinNetworkClosed(object sender, System.EventArgs e)
|
private void JoinNetworkClosed(object sender, System.EventArgs e)
|
||||||
@ -200,6 +206,10 @@ namespace WinUI
|
|||||||
aboutViewLocation.Y = aboutView.Top;
|
aboutViewLocation.Y = aboutView.Top;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
aboutView.Activate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void AboutClosed(object sender, System.EventArgs e)
|
private void AboutClosed(object sender, System.EventArgs e)
|
||||||
@ -231,6 +241,10 @@ namespace WinUI
|
|||||||
prefsViewLocation.Y = prefsView.Top;
|
prefsViewLocation.Y = prefsView.Top;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
prefsView.Activate();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void PreferencesClosed(object sender, System.EventArgs e)
|
private void PreferencesClosed(object sender, System.EventArgs e)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user