mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-24 21:38:45 -04:00
Settings tab will now be activated if already opened.
This commit is contained in:
parent
84f78d8a42
commit
f92f38e944
@ -50,6 +50,7 @@ TabBar::TabBar(QWidget *parent) :
|
||||
connect(app->getAction(KiwixApp::SettingAction), &QAction::triggered,
|
||||
this, [=]() {
|
||||
if (KiwixApp::instance()->getSettingsManager()->isSettingsViewdisplayed()) {
|
||||
setCurrentIndex(m_settingsIndex);
|
||||
return;
|
||||
}
|
||||
auto index = currentIndex() + 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user