Skip to content

Commit 8ea3a18

Browse files
Prefent dialogs from appearing in the task bar
1 parent d3b2ad4 commit 8ea3a18

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

Changelog.md

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
- Icons are now properly set in the various dialog boxes.
2020
- The <kbd>ESC</kbd> key now properly closes the "Load from hex stream" dialog.
2121
- When canceling opening a file or loading from hex stream the status bar no longer shows "File loaded successfully".
22+
- Dialogs now no longer appear in the task bar.
2223

2324
## 0.5.0
2425

src/ProtobufDecoder.Application.Wpf/MainWindow.xaml.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,8 @@ private void AboutMenuItem_OnClick(object sender, RoutedEventArgs e)
4141
var aboutWindow = new About
4242
{
4343
Owner = this,
44-
WindowStartupLocation = WindowStartupLocation.CenterOwner
44+
WindowStartupLocation = WindowStartupLocation.CenterOwner,
45+
ShowInTaskbar = false
4546
};
4647

4748
aboutWindow.ShowDialog();

src/ProtobufDecoder.Application.Wpf/ViewModels/MainWindowViewModel.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ private CommandResult LoadBytesFromHexStream(Window owner)
140140
var dialog = new PasteHexStreamDialog
141141
{
142142
Owner = owner,
143-
WindowStartupLocation = WindowStartupLocation.CenterOwner
143+
WindowStartupLocation = WindowStartupLocation.CenterOwner,
144+
ShowInTaskbar = false
144145
};
145146

146147
var result = dialog.ShowDialog();

0 commit comments

Comments
 (0)