Skip to content

Commit ffc4c0c

Browse files
committed
Chore: Rename dialog
1 parent e39d0c5 commit ffc4c0c

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

Source/NETworkManager/MainWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -515,9 +515,9 @@ await this.ShowMessageAsync(Strings.SettingsHaveBeenReset,
515515
}
516516
else if (SettingsManager.Current.UpgradeDialog_Show)
517517
{
518-
var childWindow = new UpgradeNoteChildWindow();
518+
var childWindow = new UpgradeChildWindow();
519519

520-
var viewModel = new UpgradeNoteViewModel(instance =>
520+
var viewModel = new UpgradeViewModel(instance =>
521521
{
522522
childWindow.IsOpen = false;
523523

Source/NETworkManager/ViewModels/UpgradeNoteViewModel.cs renamed to Source/NETworkManager/ViewModels/UpgradeViewModel.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
using NETworkManager.Utilities;
1+
using NETworkManager.Documentation;
22
using NETworkManager.Settings;
3+
using NETworkManager.Utilities;
34
using System;
45
using System.Windows.Input;
5-
using NETworkManager.Documentation;
66

77
namespace NETworkManager.ViewModels;
88

9-
public class UpgradeNoteViewModel : ViewModelBase
9+
public class UpgradeViewModel : ViewModelBase
1010
{
1111
public static string Title => string.Format(Localization.Resources.Strings.UpgradedToXXX, AssemblyManager.Current.Version);
12-
13-
public UpgradeNoteViewModel(Action<UpgradeNoteViewModel> continueCommand)
12+
13+
public UpgradeViewModel(Action<UpgradeViewModel> continueCommand)
1414
{
1515
ContinueCommand = new RelayCommand(_ => continueCommand(this));
1616
}

Source/NETworkManager/Views/UpgradeNoteChildWindow.xaml renamed to Source/NETworkManager/Views/UpgradeChildWindow.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<simpleChildWindow:ChildWindow x:Class="NETworkManager.Views.UpgradeNoteChildWindow"
1+
<simpleChildWindow:ChildWindow x:Class="NETworkManager.Views.UpgradeChildWindow"
22
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
33
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
44
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
@@ -14,7 +14,7 @@
1414
CloseByEscape="False"
1515
Padding="20"
1616
OverlayBrush="{DynamicResource ResourceKey=MahApps.Brushes.Gray8}"
17-
mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:UpgradeNoteViewModel}">
17+
mc:Ignorable="d" d:DataContext="{d:DesignInstance viewModels:UpgradeViewModel}">
1818
<Grid Margin="10">
1919
<Grid.RowDefinitions>
2020
<RowDefinition Height="*" />

Source/NETworkManager/Views/UpgradeNoteChildWindow.xaml.cs renamed to Source/NETworkManager/Views/UpgradeChildWindow.xaml.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
namespace NETworkManager.Views;
22

3-
public partial class UpgradeNoteChildWindow
3+
public partial class UpgradeChildWindow
44
{
5-
public UpgradeNoteChildWindow()
5+
public UpgradeChildWindow()
66
{
77
InitializeComponent();
88
}

Website/docs/changelog/next-release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ Release date: **xx.xx.2025**
4040
## Improvements
4141

4242
- Redesign welcome dialog. [#3077](https://github.com/BornToBeRoot/NETworkManager/pull/3077)
43-
- Add upgrade note dialog when updating from a previous version. [#3077](https://github.com/BornToBeRoot/NETworkManager/pull/3077)
43+
- Add upgrade dialog when updating from a previous version. [#3077](https://github.com/BornToBeRoot/NETworkManager/pull/3077)
4444

4545
**WiFi**
4646

0 commit comments

Comments
 (0)