From 13d0f5fc75d1e3fcd175804fa49bf83191bdd5fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 16 May 2021 09:21:42 +0200 Subject: [PATCH] Do not show the what's new dialog when there are no libraries No libraries probably means fresh installation. --- YACReaderLibrary/library_window.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/YACReaderLibrary/library_window.cpp b/YACReaderLibrary/library_window.cpp index b8a0b339..2267ab7f 100644 --- a/YACReaderLibrary/library_window.cpp +++ b/YACReaderLibrary/library_window.cpp @@ -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()