mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-25 10:42:58 -03:00
Added onionshare logo as settings window icon
This commit is contained in:
parent
9b3cee0878
commit
a462c567ff
2 changed files with 3 additions and 6 deletions
|
@ -69,7 +69,7 @@ class OnionShareGui(QtWidgets.QMainWindow):
|
|||
self.app = app
|
||||
|
||||
self.setWindowTitle('OnionShare')
|
||||
self.setWindowIcon(window_icon)
|
||||
self.setWindowIcon(QtGui.QIcon(helpers.get_resource_path('images/logo.png')))
|
||||
|
||||
# the menu bar
|
||||
self.setMenuBar(Menu(self.qtapp))
|
||||
|
@ -428,10 +428,6 @@ def main():
|
|||
debug = bool(args.debug)
|
||||
transparent_torification = bool(args.transparent_torification)
|
||||
|
||||
# create the onionshare icon
|
||||
global window_icon
|
||||
window_icon = QtGui.QIcon(helpers.get_resource_path('images/logo.png'))
|
||||
|
||||
# validation
|
||||
if filenames:
|
||||
valid = True
|
||||
|
|
|
@ -20,7 +20,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|||
from PyQt5 import QtCore, QtWidgets, QtGui
|
||||
import sys, platform
|
||||
|
||||
from onionshare import strings
|
||||
from onionshare import strings, helpers
|
||||
from onionshare.settings import Settings
|
||||
from onionshare.onion import *
|
||||
|
||||
|
@ -36,6 +36,7 @@ class SettingsDialog(QtWidgets.QDialog):
|
|||
|
||||
self.setModal(True)
|
||||
self.setWindowTitle(strings._('gui_settings_window_title', True))
|
||||
self.setWindowIcon(QtGui.QIcon(helpers.get_resource_path('images/logo.png')))
|
||||
|
||||
# Sharing options
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue