Improve SingleInstance.

main
Mentalflow 2023-04-25 23:58:25 +08:00
parent c8f2d7c926
commit c0e470d78e
No known key found for this signature in database
GPG Key ID: 5AE68D4401A2EE71
1 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
#include "FluApp.h"
#include "FluApp.h"
#include <QQmlEngine>
#include <QGuiApplication>
@ -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;