mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-23 03:58:56 -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,
|
||||
this, [=]() {
|
||||
if (mp_tabBar->currentZimView() != this)
|
||||
return;
|
||||
auto settingsManager = KiwixApp::instance()->getSettingsManager();
|
||||
mp_webView->setZoomFactor(settingsManager->getZoomFactor());
|
||||
auto key = mp_webView->zimId() + "/zoomFactor";
|
||||
|
Loading…
x
Reference in New Issue
Block a user