mirror of
https://github.com/onionshare/onionshare.git
synced 2025-12-17 09:14:14 -05:00
Make UpdateChecker use the shared Onion object instead of creating a new one
This commit is contained in:
parent
224f2bb0ad
commit
68e02dab1f
5 changed files with 34 additions and 51 deletions
|
|
@ -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):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue