mirror of
https://gitee.com/spark-store-project/spark-web-app-runtime.git
synced 2025-12-15 03:22:05 +08:00
Improve Features
Using DDesktopServices::showFileItem() instead of calling dde-file-manager directly in QProcess; Delete useless QDebug info and headers include.
This commit is contained in:
@@ -9,7 +9,6 @@
|
||||
#include <DFloatingMessage>
|
||||
|
||||
#include <QSystemTrayIcon>
|
||||
#include <QLayout>
|
||||
#include <QProcess>
|
||||
#include <QMutex>
|
||||
|
||||
@@ -64,8 +63,6 @@ private:
|
||||
QHBoxLayout *progress;
|
||||
DFloatingMessage *message;
|
||||
|
||||
QProcess *process;
|
||||
|
||||
QMutex mutex; // 通过 Mutex 互斥量禁止同时下载多个文件(使用简单的 bool 变量应该也可以实现该功能?)
|
||||
bool isCanceled; // 判断是否为取消下载
|
||||
|
||||
|
||||
Reference in New Issue
Block a user