mirror of
https://github.com/kiwix/kiwix-desktop.git
synced 2025-09-22 11:37:56 -04:00
Added restoration of blank tab
Blank tab is now being tracked for tab restoration on startup.
This commit is contained in:
parent
a179749d03
commit
60cc7f1dde
@ -207,7 +207,10 @@ void KiwixApp::restoreTabs()
|
|||||||
{
|
{
|
||||||
for (const auto &zimUrl : tabsToOpen)
|
for (const auto &zimUrl : tabsToOpen)
|
||||||
{
|
{
|
||||||
openUrl(QUrl(zimUrl));
|
if (zimUrl.isEmpty())
|
||||||
|
getTabWidget()->createNewTab(true, true);
|
||||||
|
else
|
||||||
|
openUrl(QUrl(zimUrl));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -163,6 +163,7 @@ ZimView* TabBar::createNewTab(bool setCurrent, bool nextToCurrentTab)
|
|||||||
connect(tab, &ZimView::webActionEnabledChanged,
|
connect(tab, &ZimView::webActionEnabledChanged,
|
||||||
this, &TabBar::onWebviewHistoryActionChanged);
|
this, &TabBar::onWebviewHistoryActionChanged);
|
||||||
|
|
||||||
|
KiwixApp::instance()->saveListOfOpenTabs();
|
||||||
return tab;
|
return tab;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user