mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-21 08:09:35 +08:00
Fix need restart to enable/disable peer countries resolution.
This commit is contained in:
parent
79976fbfce
commit
84922dcdcf
@ -141,8 +141,14 @@ void PeerListWidget::updatePeerCountryResolutionState()
|
|||||||
{
|
{
|
||||||
if (Preferences::instance()->resolvePeerCountries() != m_displayFlags) {
|
if (Preferences::instance()->resolvePeerCountries() != m_displayFlags) {
|
||||||
m_displayFlags = !m_displayFlags;
|
m_displayFlags = !m_displayFlags;
|
||||||
if (m_displayFlags)
|
if (m_displayFlags) {
|
||||||
loadPeers(m_properties->getCurrentTorrent());
|
loadPeers(m_properties->getCurrentTorrent());
|
||||||
|
showColumn(PeerListDelegate::COUNTRY);
|
||||||
|
resizeColumnToContents(PeerListDelegate::COUNTRY);
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
hideColumn(PeerListDelegate::COUNTRY);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user