Skip to content

Commit

Permalink
Fixed: Wrong tooltip on profile switcher (#383)
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo-Peyronnet committed Jul 6, 2023
1 parent b9939a3 commit ab7398d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Gavilya/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,8 @@ private void DefineMaximumSize()

double factor = scaling / 100d; // Calculate factor

MaxHeight = currentScreen.WorkingArea.Height / factor; // Set max size
MaxWidth = currentScreen.WorkingArea.Width / factor; // Set max size
MaxHeight = currentScreen.WorkingArea.Height / factor + 8; // Set max size
MaxWidth = currentScreen.WorkingArea.Width / factor + 8; // Set max size
}

private void Window_StateChanged(object sender, EventArgs e)
Expand Down Expand Up @@ -319,7 +319,7 @@ private void RefreshMaximizeRestoreButton()
MaximizeButton.Visibility = Visibility.Visible; // Show
RestoreButton.Visibility = Visibility.Collapsed; // Hide
}
WindowBorder.Margin = WindowState == WindowState.Maximized ? new(10, 10, 0, 0) : new(10); // Set
WindowBorder.Margin = WindowState == WindowState.Maximized ? new(0) : new(10); // Set
}

/// <summary>
Expand Down

0 comments on commit ab7398d

Please sign in to comment.