From f8bb349b3ee0ea2ccd9c2e8965697c3cd34079f4 Mon Sep 17 00:00:00 2001 From: Mikaƫl Capelle Date: Tue, 16 Jun 2020 12:47:36 +0200 Subject: Move userInterfaceInitialized notification at the end of the first show event. --- src/mainwindow.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 6a18f76c..b3e78121 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -539,8 +539,6 @@ MainWindow::MainWindow(Settings &settings processUpdates(); ui->statusBar->updateNormalMessage(m_OrganizerCore); - - m_OrganizerCore.userInterfaceInitialized(this); } void MainWindow::setupModList() @@ -1384,6 +1382,9 @@ void MainWindow::showEvent(QShowEvent *event) m_OrganizerCore.settings().nexus().registerAsNXMHandler(false); m_WasVisible = true; updateProblemsButton(); + + // Notify plugin that the UI is initialized: + m_OrganizerCore.userInterfaceInitialized(this); } } -- cgit v1.3.1