mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-24 04:32:15 -04:00
Added condition to reset zoom only for current tab
This commit is contained in:
parent
018da97075
commit
f6dbf73965
@ -42,6 +42,8 @@ ZimView::ZimView(TabBar *tabBar, QWidget *parent)
|
|||||||
});
|
});
|
||||||
connect(app->getAction(KiwixApp::ZoomResetAction), &QAction::triggered,
|
connect(app->getAction(KiwixApp::ZoomResetAction), &QAction::triggered,
|
||||||
this, [=]() {
|
this, [=]() {
|
||||||
|
if (mp_tabBar->currentZimView() != this)
|
||||||
|
return;
|
||||||
auto settingsManager = KiwixApp::instance()->getSettingsManager();
|
auto settingsManager = KiwixApp::instance()->getSettingsManager();
|
||||||
mp_webView->setZoomFactor(settingsManager->getZoomFactor());
|
mp_webView->setZoomFactor(settingsManager->getZoomFactor());
|
||||||
auto key = mp_webView->zimId() + "/zoomFactor";
|
auto key = mp_webView->zimId() + "/zoomFactor";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user