Browse Source

bring window to front if already open

Grant Limberg 8 years ago
parent
commit
f730f65aaf
1 changed files with 14 additions and 0 deletions
  1. 14 0
      windows/WinUI/ToolbarItem.xaml.cs

+ 14 - 0
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)