mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-26 14:21:36 -04:00
Merge pull request #340 from kiwix/dont-hide-sidebar
Readinglist doesn't close automatically
This commit is contained in:
commit
bc9ddd1945
@ -1,3 +1,7 @@
|
||||
kiwix-desktop rc5
|
||||
=================
|
||||
* Readinglist doesn't close automatically
|
||||
|
||||
kiwix-desktop rc4
|
||||
=================
|
||||
|
||||
|
@ -77,6 +77,7 @@ public:
|
||||
QString getLibraryDirectory() { return m_libraryDirectory; };
|
||||
kiwix::KiwixServe* getLocalServer() { return mp_server; }
|
||||
SettingsManager* getSettingsManager() { return &m_settingsManager; };
|
||||
SideBarType getSideType() { return m_currentSideType; }
|
||||
|
||||
bool isCurrentArticleBookmarked();
|
||||
|
||||
|
@ -274,7 +274,9 @@ void TabBar::onCurrentChanged(int index)
|
||||
emit webActionEnabledChanged(QWebEnginePage::Back, view->isWebActionEnabled(QWebEnginePage::Back));
|
||||
emit webActionEnabledChanged(QWebEnginePage::Forward, view->isWebActionEnabled(QWebEnginePage::Forward));
|
||||
emit libraryPageDisplayed(false);
|
||||
KiwixApp::instance()->setSideBar(KiwixApp::NONE);
|
||||
if (KiwixApp::instance()->getSideType() == KiwixApp::CONTENTMANAGER_BAR) {
|
||||
KiwixApp::instance()->setSideBar(KiwixApp::NONE);
|
||||
}
|
||||
QTimer::singleShot(0, [=](){emit currentTitleChanged(view->title());});
|
||||
} else {
|
||||
emit webActionEnabledChanged(QWebEnginePage::Back, false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user