diff --git a/src/Views/Blame.axaml.cs b/src/Views/Blame.axaml.cs index 8a6ffee9..d4c2da28 100644 --- a/src/Views/Blame.axaml.cs +++ b/src/Views/Blame.axaml.cs @@ -333,6 +333,8 @@ namespace SourceGit.Views private void MaximizeOrRestoreWindow(object sender, TappedEventArgs e) { + _pressedTitleBar = false; + if (WindowState == WindowState.Maximized) WindowState = WindowState.Normal; else diff --git a/src/Views/BranchCompare.axaml.cs b/src/Views/BranchCompare.axaml.cs index 9d506ef3..280cfc6a 100644 --- a/src/Views/BranchCompare.axaml.cs +++ b/src/Views/BranchCompare.axaml.cs @@ -13,6 +13,8 @@ namespace SourceGit.Views private void MaximizeOrRestoreWindow(object sender, TappedEventArgs e) { + _pressedTitleBar = false; + if (WindowState == WindowState.Maximized) WindowState = WindowState.Normal; else diff --git a/src/Views/FileHistories.axaml.cs b/src/Views/FileHistories.axaml.cs index 2c45ab9f..51570310 100644 --- a/src/Views/FileHistories.axaml.cs +++ b/src/Views/FileHistories.axaml.cs @@ -13,6 +13,8 @@ namespace SourceGit.Views private void MaximizeOrRestoreWindow(object sender, TappedEventArgs e) { + _pressedTitleBar = false; + if (WindowState == WindowState.Maximized) WindowState = WindowState.Normal; else diff --git a/src/Views/Launcher.axaml.cs b/src/Views/Launcher.axaml.cs index 60ac7d97..7cae36dc 100644 --- a/src/Views/Launcher.axaml.cs +++ b/src/Views/Launcher.axaml.cs @@ -161,6 +161,8 @@ namespace SourceGit.Views private void OnTitleBarDoubleTapped(object sender, TappedEventArgs e) { + _pressedTitleBar = false; + if (WindowState == WindowState.Maximized) WindowState = WindowState.Normal; else