diff options
Diffstat (limited to 'windows/WinUI')
-rw-r--r-- | windows/WinUI/APIHandler.cs | 2 | ||||
-rw-r--r-- | windows/WinUI/ToolbarItem.xaml.cs | 14 |
2 files changed, 15 insertions, 1 deletions
diff --git a/windows/WinUI/APIHandler.cs b/windows/WinUI/APIHandler.cs index 177d336f..a762fff7 100644 --- a/windows/WinUI/APIHandler.cs +++ b/windows/WinUI/APIHandler.cs @@ -61,7 +61,7 @@ namespace WinUI String curPath = System.Reflection.Assembly.GetEntryAssembly().Location; int index = curPath.LastIndexOf("\\"); curPath = curPath.Substring(0, index); - ProcessStartInfo startInfo = new ProcessStartInfo(curPath + "\\copyutil.exe", globalZtDir + " " + localZtDir); + ProcessStartInfo startInfo = new ProcessStartInfo(curPath + "\\copyutil.exe", "\""+globalZtDir+"\"" + " " + "\""+localZtDir+"\""); startInfo.Verb = "runas"; diff --git a/windows/WinUI/ToolbarItem.xaml.cs b/windows/WinUI/ToolbarItem.xaml.cs index 6ecac6c2..29791a4e 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) |