Browse Source

qt main window: statusbar: swap Tor and Network buttons

I think it's nicer for the network status to be rightmost, which was the case for a long time.

(Though plugins are still added after (via multiple different mechanisms, see 2fa, hww, revealer).
We could perhaps add a VLine separator, or add them to the left instead.)

follow-up 90d1d587e8
master
SomberNight 2 years ago
parent
commit
dd3fc041f9
No known key found for this signature in database
GPG Key ID: B33B5F232C6271E9
  1. 19
      electrum/gui/qt/main_window.py

19
electrum/gui/qt/main_window.py

@ -1648,12 +1648,23 @@ class ElectrumWindow(QMainWindow, MessageBoxMixin, Logger, QtEventListener):
self.status_button = None
self.tor_button = None
if self.network:
self.status_button = StatusBarButton(read_QIcon("status_disconnected.png"), _("Network"), self.gui_object.show_network_dialog, sb_height)
sb.addPermanentWidget(self.status_button)
self.tor_button = StatusBarButton(read_QIcon("tor_logo.png"), _("TOR"),
self.gui_object.show_network_dialog, sb_height)
self.tor_button = StatusBarButton(
read_QIcon("tor_logo.png"),
_("Tor"),
self.gui_object.show_network_dialog,
sb_height,
)
sb.addPermanentWidget(self.tor_button)
self.tor_button.setVisible(False)
# add status btn last, to place it at rightmost pos
self.status_button = StatusBarButton(
read_QIcon("status_disconnected.png"),
_("Network"),
self.gui_object.show_network_dialog,
sb_height,
)
sb.addPermanentWidget(self.status_button)
# add plugins
run_hook('create_status_bar', sb)
self.setStatusBar(sb)

Loading…
Cancel
Save