From c0e470d78e3b13eaeecfbac1acdd523727fa0eee Mon Sep 17 00:00:00 2001 From: Mentalflow <312902918@qq.com> Date: Tue, 25 Apr 2023 23:58:25 +0800 Subject: [PATCH] Improve SingleInstance. --- src/FluApp.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/FluApp.cpp b/src/FluApp.cpp index 9995bc3d..2ccc67ce 100644 --- a/src/FluApp.cpp +++ b/src/FluApp.cpp @@ -1,4 +1,4 @@ -#include "FluApp.h" +#include "FluApp.h" #include #include @@ -72,6 +72,8 @@ void FluApp::navigate(const QString& route,const QJsonObject& argument,FluRegist for (auto& pair : wnds) { QString r = pair->property("route").toString(); if(r == route){ + pair->setProperty("argument",argument); + pair->raise(); pair->requestActivate(); view->deleteLater(); return;