mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-07-14 09:32:20 +08:00
fix: 修复客户端已经在后台运行时,双击 desktop 图标无法调出主窗口的问题
处理 DTK 单例启动信号时,仅处理了启动参数 >1 的情况;仅执行 spark-store 未处理 Log: 第二个启动参数为空时,仍然调用 onGetUrl 函数,函数中屏蔽了非 spk:// 链接格式的字符串,但仍然执行调出主窗口操作
This commit is contained in:
parent
17c152ce8b
commit
05cb318737
@ -74,10 +74,7 @@ void MainWindow::onNewProcessInstance(qint64 pid, const QStringList &arguments)
|
||||
{
|
||||
Q_UNUSED(pid)
|
||||
|
||||
if (arguments.size() > 1)
|
||||
{
|
||||
onGetUrl(arguments.value(1));
|
||||
}
|
||||
onGetUrl(arguments.value(1, ""));
|
||||
}
|
||||
|
||||
void MainWindow::openUrl(const QString &url)
|
||||
|
Loading…
x
Reference in New Issue
Block a user