From 09eb507ddad0d164a39d72c5c121d332966ef462 Mon Sep 17 00:00:00 2001 From: isanae <14251494+isanae@users.noreply.github.com> Date: Mon, 11 Jan 2021 01:25:47 -0500 Subject: moved externalMessage() to MOApplication commands can forward to the primary instance added reload-plugin command MessageDialog now tries to find the main window when the reference is null, which actually used to happen often because activeWindow() is typically used, but that's null when the main window doesn't have focus (like when downloading from nexus, for example) --- src/moapplication.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/moapplication.h') diff --git a/src/moapplication.h b/src/moapplication.h index 7e427ca8..2fe3409b 100644 --- a/src/moapplication.h +++ b/src/moapplication.h @@ -40,6 +40,7 @@ class MOApplication : public QApplication public: MOApplication(int& argc, char** argv); + void firstTimeSetup(MOMultiProcess& multiProcess); int setup(MOMultiProcess& multiProcess); int run(MOMultiProcess& multiProcess); void resetForRestart(); @@ -65,8 +66,7 @@ private: std::unique_ptr m_plugins; std::unique_ptr m_core; - int doOneRun(MOMultiProcess& multiProcess); - + void externalMessage(const QString& message); std::unique_ptr getCurrentInstance(); std::optional setupInstanceLoop(Instance& currentInstance, PluginContainer& pc); void purgeOldFiles(); -- cgit v1.3.1