Skip to content

Commit

Permalink
Bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
qubqub committed Sep 14, 2023
1 parent 886f054 commit f8bc80d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
7 changes: 0 additions & 7 deletions Views/Overlay.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1215,7 +1215,6 @@ public void ArrangeDisplay(bool flipDisplay, bool showTabs, bool hideWins, bool
int overlaySetting = (hideWins ? 4 : 0) + (hideRound ? 2 : 0) + (hideTime ? 1 : 0);
switch (overlaySetting) {
case 0:
//this.MinimumSize = new Size(786, showTabs ? 134 : 99);
this.DefaultSize = new Size(786, showTabs ? 134 : 99);

this.lblWins.Location = new Point(firstColumnX, 9 + heightOffset);
Expand Down Expand Up @@ -1277,7 +1276,6 @@ public void ArrangeDisplay(bool flipDisplay, bool showTabs, bool hideWins, bool
this.lblFinish.DrawVisible = true;
break;
case 1:
//this.MinimumSize = new Size(538, showTabs ? 134 : 99);
this.DefaultSize = new Size(555, showTabs ? 134 : 99);

this.drawWidth -= thirdColumnWidth + spacerWidth;
Expand Down Expand Up @@ -1338,7 +1336,6 @@ public void ArrangeDisplay(bool flipDisplay, bool showTabs, bool hideWins, bool
this.lblQualifyChance.DrawVisible = true;
break;
case 2:
//this.MinimumSize = new Size(538, showTabs ? 134 : 99);
this.DefaultSize = new Size(499, showTabs ? 134 : 99);

this.drawWidth -= secondColumnWidth + spacerWidth;
Expand Down Expand Up @@ -1375,7 +1372,6 @@ public void ArrangeDisplay(bool flipDisplay, bool showTabs, bool hideWins, bool
this.lblFinish.DrawVisible = true;
break;
case 3:
//this.MinimumSize = new Size(251, showTabs ? 134 : 99);
this.DefaultSize = new Size(268, showTabs ? 134 : 99);

this.drawWidth -= secondColumnWidth + thirdColumnWidth + (spacerWidth * 2);
Expand Down Expand Up @@ -1408,7 +1404,6 @@ public void ArrangeDisplay(bool flipDisplay, bool showTabs, bool hideWins, bool
this.lblFinish.DrawVisible = false;
break;
case 4:
//this.MinimumSize = new Size(251, showTabs ? 134 : 99);
this.DefaultSize = new Size(538, showTabs ? 134 : 99);

this.drawWidth -= firstColumnWidth + spacerWidth;
Expand Down Expand Up @@ -1469,7 +1464,6 @@ public void ArrangeDisplay(bool flipDisplay, bool showTabs, bool hideWins, bool
this.lblFinish.DrawVisible = true;
break;
case 5:
//this.MinimumSize = new Size(251, showTabs ? 134 : 99);
this.DefaultSize = new Size(307, showTabs ? 134 : 99);

this.drawWidth -= firstColumnWidth + thirdColumnWidth + (spacerWidth * 2);
Expand Down Expand Up @@ -1526,7 +1520,6 @@ public void ArrangeDisplay(bool flipDisplay, bool showTabs, bool hideWins, bool
this.lblFinish.DrawVisible = false;
break;
case 6:
//this.MinimumSize = new Size(251, showTabs ? 134 : 99);
this.DefaultSize = new Size(251, showTabs ? 134 : 99);

this.drawWidth -= firstColumnWidth + secondColumnWidth + (spacerWidth * 2);
Expand Down
2 changes: 2 additions & 0 deletions Views/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -433,8 +433,10 @@ private void btnSave_Click(object sender, EventArgs e) {

if (this.CurrentSettings.ShowOverlayTabs) {
this.CurrentSettings.OverlayHeight = 134;
this.CurrentSettings.OverlayFixedHeight = 134;
} else {
this.CurrentSettings.OverlayHeight = 99;
this.CurrentSettings.OverlayFixedHeight = 99;
}
}

Expand Down

0 comments on commit f8bc80d

Please sign in to comment.