mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Clicking on the 'Not Connected' status bar item will now show the
ConnectionManager.
This commit is contained in:
parent
096ea631a9
commit
5b6a197a50
1 changed files with 5 additions and 1 deletions
|
@ -130,7 +130,8 @@ class StatusBar(component.Component):
|
||||||
self.statusbar.show_all()
|
self.statusbar.show_all()
|
||||||
# Create the not connected item
|
# Create the not connected item
|
||||||
self.not_connected_item = StatusBarItem(
|
self.not_connected_item = StatusBarItem(
|
||||||
stock=gtk.STOCK_STOP, text=_("Not Connected"))
|
stock=gtk.STOCK_STOP, text=_("Not Connected"),
|
||||||
|
callback=self._on_notconnected_item_clicked)
|
||||||
# Show the not connected status bar
|
# Show the not connected status bar
|
||||||
self.show_not_connected()
|
self.show_not_connected()
|
||||||
|
|
||||||
|
@ -412,3 +413,6 @@ class StatusBar(component.Component):
|
||||||
|
|
||||||
def _on_health_icon_clicked(self, widget, event):
|
def _on_health_icon_clicked(self, widget, event):
|
||||||
component.get("Preferences").show("Network")
|
component.get("Preferences").show("Network")
|
||||||
|
|
||||||
|
def _on_notconnected_item_clicked(self, widget, event):
|
||||||
|
component.get("ConnectionManager").show()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue