Skip to content

Commit

Permalink
fix: 修复ai冷启动影院,未自动播放播放列表中的视频
Browse files Browse the repository at this point in the history
修复ai冷启动影院,未自动播放播放列表中的视频

Bug: https://pms.uniontech.com/bug-view-232419.html
Log: 修复ai冷启动影院,未自动播放播放列表中的视频
  • Loading branch information
myk1343 authored and deepin-bot[bot] committed Dec 5, 2023
1 parent 7df8621 commit 4e45ced
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down

0 comments on commit 4e45ced

Please sign in to comment.