Skip to content

Commit

Permalink
Trying to fix bug with registering hotkeys
Browse files Browse the repository at this point in the history
  • Loading branch information
theRussetPotato committed Aug 24, 2021
1 parent c078415 commit 7bb451d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/weights_editor_tool/weights_editor.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@

class WeightsEditor(QtWidgets.QMainWindow):

version = "2.0.0"
version = "2.0.1"
instance = None
cb_selection_changed = None
shortcuts = []
Expand Down Expand Up @@ -686,7 +686,7 @@ def register_shortcuts(self):
for hotkey in self.hotkeys:
self.__class__.shortcuts.append(
utils.create_shortcut(
hotkey.key_code(), hotkey.func))
QtGui.QKeySequence(hotkey.key_code()), hotkey.func))

self.update_tooltips()

Expand Down Expand Up @@ -1655,9 +1655,9 @@ def about_on_triggered(self):
dialog.deleteLater()

def toggle_view_on_toggled(self, enabled):
self.limit_warning_label.setVisible(False)
self.weights_list.setVisible(not enabled)
self.weights_table.setVisible(enabled)
self.limit_warning_label.setVisible(enabled)

if enabled:
self.toggle_view_button.setText("TABLE")
Expand Down

0 comments on commit 7bb451d

Please sign in to comment.