From 4e45ced2fd74f75182f96d349544e3c21958ff19 Mon Sep 17 00:00:00 2001 From: muyuankai Date: Tue, 5 Dec 2023 17:28:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dai=E5=86=B7=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=BD=B1=E9=99=A2=EF=BC=8C=E6=9C=AA=E8=87=AA=E5=8A=A8?= =?UTF-8?q?=E6=92=AD=E6=94=BE=E6=92=AD=E6=94=BE=E5=88=97=E8=A1=A8=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E8=A7=86=E9=A2=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复ai冷启动影院,未自动播放播放列表中的视频 Bug: https://pms.uniontech.com/bug-view-232419.html Log: 修复ai冷启动影院,未自动播放播放列表中的视频 --- src/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 2d4ababd..9c0529d3 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -280,6 +280,15 @@ int main(int argc, char *argv[]) iface.asyncCall("Raise"); } exit(0); + } else { + if (clm.isSet("functioncall")) { + QTimer::singleShot(2000, [=]() { + QDBusInterface iface("com.deepin.movie", "/", "com.deepin.movie"); + if(!movieName.isEmpty()) { + iface.asyncCall("openFile", movieName); + } + }); + } } // app.setWindowIcon(QIcon(":/resources/icons/logo.svg"));