Add a menu bar, with a stub for Settings, and Quit

This commit is contained in:
Micah Lee 2016-12-28 15:55:31 -08:00
parent 5328f339f0
commit 00b0ce443c
No known key found for this signature in database
GPG key ID: 403C2657CD994F73
3 changed files with 56 additions and 1 deletions

View file

@ -25,6 +25,7 @@ from PyQt5.QtCore import pyqtSlot
import onionshare
from onionshare import strings, helpers, web
from .menu import Menu
from .file_selection import FileSelection
from .server_status import ServerStatus
from .downloads import Downloads
@ -70,6 +71,9 @@ class OnionShareGui(QtWidgets.QMainWindow):
self.setWindowTitle('OnionShare')
self.setWindowIcon(window_icon)
# the menu bar
self.setMenuBar(Menu())
def send_files(self, filenames=None):
"""
Build the GUI in send files mode.