mirror of
https://github.com/zhuzichu520/FluentUI.git
synced 2024-11-27 05:38:37 +08:00
Improve SingleInstance.
This commit is contained in:
parent
c8f2d7c926
commit
c0e470d78e
@ -1,4 +1,4 @@
|
|||||||
#include "FluApp.h"
|
#include "FluApp.h"
|
||||||
|
|
||||||
#include <QQmlEngine>
|
#include <QQmlEngine>
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
@ -72,6 +72,8 @@ void FluApp::navigate(const QString& route,const QJsonObject& argument,FluRegist
|
|||||||
for (auto& pair : wnds) {
|
for (auto& pair : wnds) {
|
||||||
QString r = pair->property("route").toString();
|
QString r = pair->property("route").toString();
|
||||||
if(r == route){
|
if(r == route){
|
||||||
|
pair->setProperty("argument",argument);
|
||||||
|
pair->raise();
|
||||||
pair->requestActivate();
|
pair->requestActivate();
|
||||||
view->deleteLater();
|
view->deleteLater();
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user