Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/Files.App/MainWindow.xaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<!-- Copyright (c) Files Community. Licensed under the MIT License. -->
<winuiex:WindowEx
x:Class="Files.App.MainWindow"
Expand All @@ -7,4 +7,5 @@
xmlns:items="using:Files.App.Data.Items"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:winuiex="using:WinUIEx"
mc:Ignorable="d" />
mc:Ignorable="d"
Closed="MainWindow_Closed" />
6 changes: 6 additions & 0 deletions src/Files.App/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
public MainWindow()
{
InitializeComponent();
Closed += MainWindow_Closed;

WindowHandle = WinUIEx.WindowExtensions.GetWindowHandle(this);
MinHeight = 316;
Expand Down Expand Up @@ -368,5 +369,10 @@
e.Handled = true;
}
}

private void MainWindow_Closed(object sender, WindowEventArgs args)

Check failure on line 373 in src/Files.App/MainWindow.xaml.cs

View workflow job for this annotation

GitHub Actions / build (Release, x64)

The type or namespace name 'WindowEventArgs' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 373 in src/Files.App/MainWindow.xaml.cs

View workflow job for this annotation

GitHub Actions / build (Debug, arm64)

The type or namespace name 'WindowEventArgs' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 373 in src/Files.App/MainWindow.xaml.cs

View workflow job for this annotation

GitHub Actions / build (Debug, x64)

The type or namespace name 'WindowEventArgs' could not be found (are you missing a using directive or an assembly reference?)

Check failure on line 373 in src/Files.App/MainWindow.xaml.cs

View workflow job for this annotation

GitHub Actions / build (Release, arm64)

The type or namespace name 'WindowEventArgs' could not be found (are you missing a using directive or an assembly reference?)
{
_Instance = null;
}
}
}
Loading