Do not show the what's new dialog when there are no libraries

No libraries probably means fresh installation.
This commit is contained in:
Luis Ángel San Martín 2021-05-16 09:21:42 +02:00
parent b1713fc184
commit 13d0f5fc75

View File

@ -113,9 +113,10 @@ LibraryWindow::LibraryWindow()
void LibraryWindow::afterLaunchTasks()
{
WhatsNewController whatsNewController;
whatsNewController.showWhatsNewIfNeeded(this);
if (!libraries.isEmpty()) {
WhatsNewController whatsNewController;
whatsNewController.showWhatsNewIfNeeded(this);
}
}
void LibraryWindow::setupUI()