mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-01-03 08:55:49 +01:00
Content server: Show a best guess for the IP address the content server is currently listening at in the connect/share menu. Fixes #1024128 ([Enhancement] Display IP Address)
This commit is contained in:
parent
33f990c075
commit
48a978cd70
1 changed files with 2 additions and 1 deletions
|
|
@ -74,9 +74,10 @@ def __init__(self, parent=None):
|
|||
action=self.toggle_server_action, group=gr)
|
||||
|
||||
def server_state_changed(self, running):
|
||||
from calibre.utils.mdns import get_external_ip
|
||||
text = _('Start Content Server')
|
||||
if running:
|
||||
text = _('Stop Content Server')
|
||||
text = _('Stop Content Server') + ' [%s]'%get_external_ip()
|
||||
self.toggle_server_action.setText(text)
|
||||
|
||||
def build_email_entries(self, sync_menu):
|
||||
|
|
|
|||
Loading…
Reference in a new issue