Settings tab will now be activated if already opened.

This commit is contained in:
Saket_07 2020-12-30 17:34:49 +05:30
parent 84f78d8a42
commit f92f38e944

View File

@ -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;