Skip to content

Commit 6004ceb

Browse files
author
panwenbo
committed
修复一些bug;
1 parent 063e5e1 commit 6004ceb

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

One.Toolbox/One.Toolbox.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<SelfContained>false</SelfContained>
1010
<UseWPF>true</UseWPF>
1111
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
12-
<Version>2.8.0</Version>
12+
<Version>2.8.1</Version>
1313
<ImplicitUsings>enable</ImplicitUsings>
1414
<SatelliteResourceLanguages>zh-Hans;en-us</SatelliteResourceLanguages>
1515
<ApplicationIcon>Icon.ico</ApplicationIcon>

One.Toolbox/ViewModels/NetSpeed/NetSpeedPageVM.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,10 @@ public NetSpeedPageVM()
5454

5555
LoadSetting();
5656
NetSpeedSelectItemVM = NetSpeedItems.FirstOrDefault(i => i.InterfaceName == LastAdapterName);
57+
if (NetSpeedSelectItemVM == null)
58+
{
59+
NetSpeedSelectItemVM = NetSpeedItems.FirstOrDefault();
60+
}
5761
NetSpeedSelectItemVM.SpeedAction += NetSpeedPlot.OnSpeedChange;
5862

5963
if (ShowSmallWnd)

One.Toolbox/Views/Settings/SettingsPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
99
xmlns:myuc="clr-namespace:One.Toolbox.MyUserControl"
1010
xmlns:vms="clr-namespace:One.Toolbox.ViewModels.Setting"
11-
d:DataContext="{d:DesignInstance Type=vms:SettingsVM}"
11+
d:DataContext="{d:DesignInstance Type=vms:SettingsPageVM}"
1212
d:Height="548"
1313
d:Width="733"
1414
mc:Ignorable="d">

0 commit comments

Comments
 (0)