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,10 +113,11 @@ LibraryWindow::LibraryWindow()
void LibraryWindow::afterLaunchTasks() void LibraryWindow::afterLaunchTasks()
{ {
if (!libraries.isEmpty()) {
WhatsNewController whatsNewController; WhatsNewController whatsNewController;
whatsNewController.showWhatsNewIfNeeded(this); whatsNewController.showWhatsNewIfNeeded(this);
} }
}
void LibraryWindow::setupUI() void LibraryWindow::setupUI()
{ {