From f730f65aaf809086fab67fb8e5d230a57712c2d6 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Mon, 9 Jan 2017 14:23:37 -0800 Subject: [PATCH] bring window to front if already open --- windows/WinUI/ToolbarItem.xaml.cs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/windows/WinUI/ToolbarItem.xaml.cs b/windows/WinUI/ToolbarItem.xaml.cs index 6ecac6c25..29791a4e8 100644 --- a/windows/WinUI/ToolbarItem.xaml.cs +++ b/windows/WinUI/ToolbarItem.xaml.cs @@ -138,6 +138,8 @@ namespace WinUI netListLocation.X = netListView.Left; netListLocation.Y = netListView.Top; } + + netListView.Activate(); } private void ShowNetworksClosed(object sender, System.EventArgs e) @@ -169,6 +171,10 @@ namespace WinUI joinNetLocation.Y = joinNetView.Top; } } + else + { + joinNetView.Activate(); + } } private void JoinNetworkClosed(object sender, System.EventArgs e) @@ -200,6 +206,10 @@ namespace WinUI aboutViewLocation.Y = aboutView.Top; } } + else + { + aboutView.Activate(); + } } private void AboutClosed(object sender, System.EventArgs e) @@ -231,6 +241,10 @@ namespace WinUI prefsViewLocation.Y = prefsView.Top; } } + else + { + prefsView.Activate(); + } } private void PreferencesClosed(object sender, System.EventArgs e)