mirror of
https://github.com/d47081/qBittorrent.git
synced 2025-01-10 23:07:59 +00:00
- Do not refresh properties if they are note visible
This commit is contained in:
parent
561033d7eb
commit
c3281a1e8f
@ -141,6 +141,8 @@ void PropertiesWidget::slide() {
|
|||||||
hSplitter->handle(1)->setVisible(true);
|
hSplitter->handle(1)->setVisible(true);
|
||||||
hSplitter->setSizes(slideSizes);
|
hSplitter->setSizes(slideSizes);
|
||||||
state = VISIBLE;
|
state = VISIBLE;
|
||||||
|
// Force refresh
|
||||||
|
loadDynamicData();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -273,6 +275,7 @@ void PropertiesWidget::reloadPreferences() {
|
|||||||
|
|
||||||
void PropertiesWidget::loadDynamicData() {
|
void PropertiesWidget::loadDynamicData() {
|
||||||
if(!h.is_valid()) return;
|
if(!h.is_valid()) return;
|
||||||
|
if(state != VISIBLE) return;
|
||||||
try {
|
try {
|
||||||
// Transfer infos
|
// Transfer infos
|
||||||
if(stackedProperties->currentIndex() == MAIN_TAB) {
|
if(stackedProperties->currentIndex() == MAIN_TAB) {
|
||||||
|
Loading…
Reference in New Issue
Block a user