Skip to content

Commit

Permalink
Update gui.py
Browse files Browse the repository at this point in the history
Corrected if else statement
  • Loading branch information
FrankFrank9 authored Sep 25, 2022
1 parent b2b0ef7 commit 930428c
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions pix2tex/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -65,12 +65,8 @@ def initUI(self):
self.snipButton = QPushButton('Snip [Alt+S]', self)
self.snipButton.clicked.connect(self.onClick)

if sys.platform == "darwin":
self.shortcut = QShortcut(QKeySequence("Alt+S"), self)
self.shortcut.activated.connect(self.onClick)
else:
self.shortcut = QShortcut(QKeySequence("Alt+S"), self)
self.shortcut.activated.connect(self.onClick)
self.shortcut = QShortcut(QKeySequence("Alt+S"), self)
self.shortcut.activated.connect(self.onClick)

# Create retry button
self.retryButton = QPushButton('Retry', self)
Expand Down

0 comments on commit 930428c

Please sign in to comment.