mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-04 02:12:21 +08:00
commit
87b68aca1e
7
debian/changelog
vendored
7
debian/changelog
vendored
@ -1,3 +1,10 @@
|
|||||||
|
spark-store (3.2.3) stable; urgency=medium
|
||||||
|
|
||||||
|
* 客户端异常退出时仍然占用资源问题修复
|
||||||
|
* 降低dtk依赖版本,Debian 11 stable可直接安装
|
||||||
|
|
||||||
|
-- shenmo <shenmo@spark-app.store> Fri, 30 Jan 2022 00:00:00 +0800
|
||||||
|
|
||||||
spark-store (3.2.2) stable; urgency=medium
|
spark-store (3.2.2) stable; urgency=medium
|
||||||
|
|
||||||
* aptss will now refresh the system source before doing install, policy....etc
|
* aptss will now refresh the system source before doing install, policy....etc
|
||||||
|
6
debian/control
vendored
6
debian/control
vendored
@ -11,9 +11,9 @@ Build-Depends:
|
|||||||
libqt5widgets5,
|
libqt5widgets5,
|
||||||
libqt5network5,
|
libqt5network5,
|
||||||
libqt5concurrent5,
|
libqt5concurrent5,
|
||||||
libdtkcore-dev(>=5.2),
|
libdtkcore-dev(>=5.0),
|
||||||
libdtkgui-dev(>=5.2),
|
libdtkgui-dev(>=5.0),
|
||||||
libdtkwidget-dev(>=5.2),
|
libdtkwidget-dev(>=5.0),
|
||||||
qttools5-private-dev,
|
qttools5-private-dev,
|
||||||
libnotify-dev,
|
libnotify-dev,
|
||||||
qtwebengine5-dev
|
qtwebengine5-dev
|
||||||
|
@ -34,7 +34,7 @@ int main(int argc, char *argv[])
|
|||||||
DAboutDialog dialog;
|
DAboutDialog dialog;
|
||||||
a.setAboutDialog(&dialog);
|
a.setAboutDialog(&dialog);
|
||||||
dialog.setLicense(QObject::tr("We publish this program under GPL V3"));
|
dialog.setLicense(QObject::tr("We publish this program under GPL V3"));
|
||||||
dialog.setVersion(DApplication::buildVersion("Version 3.2.2"));
|
dialog.setVersion(DApplication::buildVersion("Version 3.2.3"));
|
||||||
dialog.setProductIcon(QIcon::fromTheme("spark-store")); // 设置Logo
|
dialog.setProductIcon(QIcon::fromTheme("spark-store")); // 设置Logo
|
||||||
dialog.setProductName(QLabel::tr("Spark Store"));
|
dialog.setProductName(QLabel::tr("Spark Store"));
|
||||||
dialog.setDescription(
|
dialog.setDescription(
|
||||||
@ -55,7 +55,7 @@ int main(int argc, char *argv[])
|
|||||||
a.setOrganizationName("spark-union");
|
a.setOrganizationName("spark-union");
|
||||||
a.setOrganizationDomain("https://www.deepinos.org/");
|
a.setOrganizationDomain("https://www.deepinos.org/");
|
||||||
a.setApplicationName("Spark Store"); //不需要翻译,否则 ~/.local/share/ 下文件夹名称也被翻译为中文
|
a.setApplicationName("Spark Store"); //不需要翻译,否则 ~/.local/share/ 下文件夹名称也被翻译为中文
|
||||||
a.setApplicationVersion(DApplication::buildVersion("3.2.2"));
|
a.setApplicationVersion(DApplication::buildVersion("3.2.3"));
|
||||||
a.setApplicationAcknowledgementPage("https://gitee.com/deepin-community-store/spark-store");
|
a.setApplicationAcknowledgementPage("https://gitee.com/deepin-community-store/spark-store");
|
||||||
a.setApplicationDescription(
|
a.setApplicationDescription(
|
||||||
QObject::tr(
|
QObject::tr(
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#include <QSettings>
|
#include <QSettings>
|
||||||
#include <QGraphicsOpacityEffect>
|
#include <QGraphicsOpacityEffect>
|
||||||
#include <QtConcurrent> // 并发
|
#include <QtConcurrent> // 并发
|
||||||
|
#include <QCloseEvent> // close event
|
||||||
|
|
||||||
#include <DApplication>
|
#include <DApplication>
|
||||||
#include <DGuiApplicationHelper>
|
#include <DGuiApplicationHelper>
|
||||||
@ -572,14 +573,14 @@ void Widget::chooseLeftMenu(int index)
|
|||||||
|
|
||||||
updateUI();
|
updateUI();
|
||||||
|
|
||||||
if(index <= 12)
|
if (index <= 12)
|
||||||
{
|
{
|
||||||
if(themeIsDark)
|
if (themeIsDark)
|
||||||
{
|
{
|
||||||
QString darkurl = menuUrl[index].toString();
|
QString darkurl = menuUrl[index].toString();
|
||||||
QStringList list = darkurl.split("/");
|
QStringList list = darkurl.split("/");
|
||||||
darkurl.clear();
|
darkurl.clear();
|
||||||
for(int i = 0; i < list.size() - 1; i++)
|
for (int i = 0; i < list.size() - 1; i++)
|
||||||
{
|
{
|
||||||
darkurl += list[i] + "/";
|
darkurl += list[i] + "/";
|
||||||
}
|
}
|
||||||
@ -687,22 +688,18 @@ void Widget::searchApp(QString text)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// sendNotification(tr("Spark store could only process spk:// links for now. The search feature is coming soon!"));
|
|
||||||
// ui->webView->setUrl(QUrl("http://www.baidu.com/s?wd="+text)); // 这东西对接百度
|
|
||||||
// ui->stackedWidget->setCurrentIndex(0);
|
|
||||||
|
|
||||||
// 禁止同时进行多次搜索
|
// 禁止同时进行多次搜索
|
||||||
if(!mutex.tryLock())
|
if (!mutex.tryLock())
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 关键字搜索处理
|
// 关键字搜索处理
|
||||||
httpClient->get("https://search.deepinos.org.cn/appinfo/search")
|
httpClient->get("https://search.deepinos.org.cn/appinfo/search")
|
||||||
.header("content-type", "application/json")
|
.header("content-type", "application/json")
|
||||||
.queryParam("keyword", text)
|
.queryParam("keyword", text)
|
||||||
.onResponse([this](QByteArray result)
|
.onResponse([this](QByteArray result)
|
||||||
{
|
{
|
||||||
auto json = QJsonDocument::fromJson(result).array();
|
auto json = QJsonDocument::fromJson(result).array();
|
||||||
if (json.empty())
|
if (json.empty())
|
||||||
{
|
{
|
||||||
@ -711,20 +708,24 @@ void Widget::searchApp(QString text)
|
|||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
displaySearchApp(json);
|
displaySearchApp(json); })
|
||||||
})
|
.onError([this](QString errorStr)
|
||||||
.onError([this](QString errorStr)
|
{
|
||||||
{
|
|
||||||
qDebug() << "请求出错:" << errorStr;
|
qDebug() << "请求出错:" << errorStr;
|
||||||
sendNotification(QString(tr("Request Error: %1")).arg(errorStr));
|
sendNotification(QString(tr("Request Error: %1")).arg(errorStr));
|
||||||
mutex.unlock();
|
mutex.unlock();
|
||||||
return;
|
return; })
|
||||||
})
|
.timeout(10 * 1000)
|
||||||
.timeout(10 * 1000)
|
.exec();
|
||||||
.exec();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Widget::closeEvent(QCloseEvent *event)
|
||||||
|
{
|
||||||
|
mutex.unlock();
|
||||||
|
httpClient->deleteLater();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief 展示搜索的APP信息
|
* @brief 展示搜索的APP信息
|
||||||
*/
|
*/
|
||||||
|
@ -128,6 +128,7 @@ private:
|
|||||||
void setfoot(int);
|
void setfoot(int);
|
||||||
void updatefoot();
|
void updatefoot();
|
||||||
void updateUI();
|
void updateUI();
|
||||||
|
void closeEvent(QCloseEvent *event);
|
||||||
|
|
||||||
quint64 dirFileSize(const QString &path);
|
quint64 dirFileSize(const QString &path);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user