Skip to content

Commit

Permalink
Fix a weird bug
Browse files Browse the repository at this point in the history
  • Loading branch information
HMBSbige committed Oct 7, 2019
1 parent 86ab767 commit 565bbba
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
2 changes: 1 addition & 1 deletion shadowsocks-csharp/Controller/HttpRequest/UpdateChecker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class UpdateChecker

public const string Name = @"ShadowsocksR";
public const string Copyright = @"Copyright © HMBSbige 2019 & BreakWa11 2017. Fork from Shadowsocks by clowwindy";
public const string Version = @"5.1.3.1";
public const string Version = @"5.1.3.2";

public const string FullVersion = Version +
#if IsDotNetCore
Expand Down
4 changes: 3 additions & 1 deletion shadowsocks-csharp/View/ConfigWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@
mc:Ignorable="d"
x:Name="Cw"
Title="ConfigWindow" Height="560" Width="800" WindowStartupLocation="CenterScreen"
Loaded="Window_Loaded">
Loaded="Window_Loaded"
Activated="ConfigWindow_OnActivated"
>

<Window.Resources>
<ResourceDictionary>
Expand Down
5 changes: 5 additions & 0 deletions shadowsocks-csharp/View/ConfigWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -555,5 +555,10 @@ private void ShowQrCodeButton_OnClick(object sender, RoutedEventArgs e)
}

#endregion

private void ConfigWindow_OnActivated(object sender, EventArgs e)
{
Topmost = false;
}
}
}
3 changes: 2 additions & 1 deletion shadowsocks-csharp/View/MenuViewController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ private void ShowConfigForm(int index)
{
_configWindow.WindowState = WindowState.Normal;
}
_configWindow.Topmost = true;
_configWindow.MoveToSelectedItem(index);
}
else
Expand All @@ -825,7 +826,7 @@ private void ShowConfigForm(int index)
_configWindow = new ConfigWindow(controller, index);
_configWindow.Show();
_configWindow.Activate();
_configWindow.BringToFront();
_configWindow.Topmost = true;
_configWindow.Closed += ConfigWindow_Closed;
}
}
Expand Down

0 comments on commit 565bbba

Please sign in to comment.