| 107 | using namespace YACReader; |
| 108 | |
| 109 | LibraryWindow::LibraryWindow() |
| 110 | : QMainWindow(), fullscreen(false), previousFilter(""), fetching(false), status(LibraryWindow::Normal), removeError(false), pendingAfterLaunchTasks(false) |
| 111 | { |
| 112 | createSettings(); |
| 113 | |
| 114 | setupUI(); |
| 115 | |
| 116 | loadLibraries(); |
| 117 | |
| 118 | if (libraries.isEmpty()) { |
| 119 | showNoLibrariesWidget(); |
| 120 | } else { |
| 121 | showRootWidget(); |
| 122 | selectedLibrary->setCurrentIndex(0); |
| 123 | } |
| 124 | |
| 125 | if (startsHiddenInTray()) { |
| 126 | pendingAfterLaunchTasks = true; |
| 127 | } else { |
| 128 | afterLaunchTasks(); |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | void LibraryWindow::afterLaunchTasks() |
| 133 | { |
nothing calls this directly
no test coverage detected