Skip to content

Commit

Permalink
Set default window size instead of maximizing frame
Browse files Browse the repository at this point in the history
Removed the code that maximized the main window on startup. This allows the application to honor the specified preferred and minimum dimensions for the main frame. Improves flexibility for users with different screen sizes.
  • Loading branch information
IllianiCBT committed Jan 25, 2025
1 parent f09ba0c commit 2d73731
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions MekHQ/src/mekhq/gui/CampaignGUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@
import mekhq.campaign.report.TransportReport;
import mekhq.campaign.unit.Unit;
import mekhq.campaign.universe.NewsItem;
import mekhq.gui.campaignOptions.CampaignOptionsDialog;
import mekhq.gui.dialog.*;
import mekhq.gui.dialog.CampaignExportWizard.CampaignExportWizardState;
import mekhq.gui.campaignOptions.CampaignOptionsDialog;
import mekhq.gui.dialog.reportDialogs.*;
import mekhq.gui.enums.MHQTabType;
import mekhq.gui.model.PartsTableModel;
Expand Down Expand Up @@ -219,7 +219,6 @@ private void initComponents() {
tabMain.setToolTipText("");
tabMain.setMinimumSize(new Dimension(600, 200));
tabMain.setPreferredSize(new Dimension(900, 300));
frame.setExtendedState(JFrame.MAXIMIZED_BOTH);

addStandardTab(MHQTabType.COMMAND_CENTER);
addStandardTab(MHQTabType.TOE);
Expand Down

0 comments on commit 2d73731

Please sign in to comment.