mirror of
https://github.com/onionshare/onionshare.git
synced 2025-08-11 07:40:26 -04:00
Move graphical banner into common, and display it in GUI too
This commit is contained in:
parent
a07c66d689
commit
4f2ca21c9a
3 changed files with 35 additions and 36 deletions
|
@ -75,14 +75,12 @@ def main():
|
|||
The main() function implements all of the logic that the GUI version of onionshare uses.
|
||||
"""
|
||||
common = Common()
|
||||
common.display_banner()
|
||||
|
||||
# Required for macOS Big Sur: https://stackoverflow.com/a/64878899
|
||||
if common.platform == "Darwin":
|
||||
os.environ["QT_MAC_WANTS_LAYER"] = "1"
|
||||
|
||||
# Display OnionShare banner
|
||||
print(f"OnionShare {common.version} | https://onionshare.org/")
|
||||
|
||||
# Start the Qt app
|
||||
global qtapp
|
||||
qtapp = Application(common)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue