Skip to content

Commit

Permalink
pylint fixes and wrong 'outdated'
Browse files Browse the repository at this point in the history
  • Loading branch information
donob4n committed Apr 12, 2020
1 parent 2a55c5d commit b577cb9
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions qubesmanager/qube_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def helpEvent(self, event, view, option, index):
margin = iconRect.left() - option.rect.left()
left = delta = margin + iconRect.width()

if index.data().outdated:
if index.data()['outdated']:
if event.pos() in iconRect.translated(left, 0):
# see above (*)
if index != self.lastIndex:
Expand Down Expand Up @@ -636,20 +636,18 @@ def __init__(self, qt_app, qubes_app, dispatcher, _parent=None):
self.tools_context_menu.addAction(self.action_menubar)

self.menubar.customContextMenuRequested.connect(
lambda pos: self.open_tools_context_menu(self.menubar,pos))
lambda pos: self.open_tools_context_menu(self.menubar, pos))
self.toolbar.customContextMenuRequested.connect(
lambda pos: self.open_tools_context_menu(self.toolbar,pos))
lambda pos: self.open_tools_context_menu(self.toolbar, pos))
self.action_menubar.toggled.connect(self.showhide_menubar)
self.action_toolbar.toggled.connect(self.showhide_toolbar)
self.logs_menu.triggered.connect(self.show_log)


self.table.resizeColumnsToContents()

self.update_size_on_disk = False
self.shutdown_monitor = {}


self.qubes_cache = QubesCache(qubes_app)
self.fill_cache()
self.qubes_model = QubesTableModel(self.qubes_cache)
Expand Down Expand Up @@ -944,7 +942,7 @@ def table_selection_changed(self):

# noinspection PyArgumentList
@pyqtSlot(name='on_action_createvm_triggered')
def action_createvm_triggered(self): # pylint: disable=no-self-use
def action_createvm_triggered(self):
with common_threads.busy_cursor():
create_window = create_new_vm.NewVmDlg(self.qt_app, self.qubes_app)
create_window.exec_()
Expand Down Expand Up @@ -1265,7 +1263,7 @@ def action_global_settings_triggered(self): # pylint: disable=invalid-name
# noinspection PyArgumentList
@pyqtSlot(name='on_action_manage_templates_triggered')
def action_manage_templates_triggered(self):
# pylint: disable=invalid-name, no-self-use
# pylint: disable=no-self-use
subprocess.check_call('qubes-template-manager')

# noinspection PyArgumentList
Expand Down

0 comments on commit b577cb9

Please sign in to comment.