Skip to content

Commit

Permalink
Remove Windows 11 Spinbox hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
YourAverageLink committed Jun 3, 2024
1 parent 279b7de commit 2edccb7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions gui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,6 @@ def __init__(self):
self.ui = Ui_main_window()
self.ui.setupUi(self)

# On Windows 11, qt calculates the size hint for spinbox line-edits incorrectly.
# Set negative content margins here to correct it until qt fixes it.
if platform.system() == "Windows" and platform.release() == "11":
for spinbox in self.findChildren(QSpinBox):
spinbox.lineEdit().setTextMargins(-10, 0, -10, 0)

self.setWindowTitle(
f"The Legend of Zelda: Skyward Sword HD Randomizer (Ver. {VERSION})"
)
Expand Down

0 comments on commit 2edccb7

Please sign in to comment.