mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 23:17:21 -06:00
Display External IP Address in status bar
This change displays the last detected IPv4 and/or IPv6 address(es) in the GUI and WebUI's status bar. This does not yet handle systems with multiple addresses of the same type (e.g. multiple IPv6 addresses). PR #21383. --------- Co-authored-by: Odin Vex <44311901+OdinVex@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
fb9b3c0f34
commit
f89c4c32ed
@@ -136,6 +136,7 @@ void AppController::preferencesAction()
|
||||
// Language
|
||||
data[u"locale"_s] = pref->getLocale();
|
||||
data[u"performance_warning"_s] = session->isPerformanceWarningEnabled();
|
||||
data[u"status_bar_external_ip"_s] = pref->isStatusbarExternalIPDisplayed();
|
||||
// Transfer List
|
||||
data[u"confirm_torrent_deletion"_s] = pref->confirmTorrentDeletion();
|
||||
// Log file
|
||||
@@ -519,6 +520,8 @@ void AppController::setPreferencesAction()
|
||||
pref->setLocale(locale);
|
||||
}
|
||||
}
|
||||
if (hasKey(u"status_bar_external_ip"_s))
|
||||
pref->setStatusbarExternalIPDisplayed(it.value().toBool());
|
||||
if (hasKey(u"performance_warning"_s))
|
||||
session->setPerformanceWarningEnabled(it.value().toBool());
|
||||
// Transfer List
|
||||
|
||||
Reference in New Issue
Block a user