Make UpdateChecker use the shared Onion object instead of creating a new one

This commit is contained in:
Micah Lee 2017-05-14 19:54:12 -07:00
parent 224f2bb0ad
commit 68e02dab1f
5 changed files with 34 additions and 51 deletions

View file

@ -26,8 +26,9 @@ class Menu(QtWidgets.QMenuBar):
"""
OnionShare's menu bar.
"""
def __init__(self, qtapp):
def __init__(self, onion, qtapp):
super(Menu, self).__init__()
self.onion = onion
self.qtapp = qtapp
file_menu = self.addMenu(strings._('gui_menu_file_menu', True))
@ -41,7 +42,7 @@ class Menu(QtWidgets.QMenuBar):
"""
Settings action triggered.
"""
SettingsDialog(self.qtapp)
SettingsDialog(self.onion, self.qtapp)
def quit(self):
"""