mirror of
https://github.com/onionshare/onionshare.git
synced 2025-05-04 15:35:13 -04:00
Display version string automatically in CLI, and in the status bar in GUI (#251)
This commit is contained in:
parent
d987a23c40
commit
e199946a8d
5 changed files with 23 additions and 2 deletions
|
@ -111,6 +111,9 @@ class OnionShareGui(QtGui.QWidget):
|
|||
# status bar
|
||||
self.status_bar = QtGui.QStatusBar()
|
||||
self.status_bar.setSizeGripEnabled(False)
|
||||
version_label = QtGui.QLabel('v{0:s}'.format(helpers.get_version()))
|
||||
version_label.setStyleSheet('color: #666666;')
|
||||
self.status_bar.addPermanentWidget(version_label)
|
||||
|
||||
# main layout
|
||||
self.layout = QtGui.QVBoxLayout()
|
||||
|
@ -260,6 +263,7 @@ def main():
|
|||
The main() function implements all of the logic that the GUI version of onionshare uses.
|
||||
"""
|
||||
strings.load_strings()
|
||||
print strings._('version_string').format(helpers.get_version())
|
||||
|
||||
# start the Qt app
|
||||
global qtapp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue