diff --git a/src/widget.cpp b/src/widget.cpp
index 3a40641..594315b 100644
--- a/src/widget.cpp
+++ b/src/widget.cpp
@@ -1090,34 +1090,9 @@ void Widget::on_pushButton_updateApt_clicked()
ui->pushButton_updateApt->setEnabled(false);
ui->label_aptserver->setText(tr("Updating, please wait..."));
- QProcess runupdate;
- runupdate.start("pkexec" , QStringList() << "aptss" << "ssupdate");
- runupdate.waitForFinished();
- QString error = runupdate.readAllStandardError();
-
- QStringList everyError = error.split("\n");
- bool haveError = false;
- for(int i = 0; i < everyError.size(); i++)
- {
- if(everyError[i].left(2) == "E:")
- {
- haveError = true;
- }
- }
-
- if(!haveError)
- {
- ui->label_aptserver->setText(tr("Update finished"));
- }
- else
- {
- ui->label_aptserver->setText(tr("Apt has reported an error. Please use apt update in terminal to locate the problem."));
- }
-
-
-
-
-
+ QString storeSpk = "spk://store/tools/spark-store";
+ openUrl(storeSpk);
+ ui->label_aptserver->setText(tr(""));
ui->pushButton_updateApt->setEnabled(true);
});
diff --git a/src/widget.ui b/src/widget.ui
index a31e9c5..2b25684 100644
--- a/src/widget.ui
+++ b/src/widget.ui
@@ -1220,7 +1220,7 @@
color:#808080
- <html><head/><body><p>The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. </p></body></html>
+ <html><head/><body><p>Check update for Spark Store. </p></body></html>true
@@ -1237,7 +1237,7 @@
- Source Server
+ Spark Store Update
diff --git a/translations/spark-store_en.ts b/translations/spark-store_en.ts
index bde37e6..823177f 100644
--- a/translations/spark-store_en.ts
+++ b/translations/spark-store_en.ts
@@ -150,7 +150,7 @@
-
+ Install
@@ -347,11 +347,6 @@
Refresh
-
-
- <html><head/><body><p>The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. </p></body></html>
-
- Update
@@ -359,7 +354,7 @@
- Source Server
+ Spark Store Update
@@ -427,6 +422,11 @@
Take effect when restart
+
+
+ <html><head/><body><p>Check update for Spark Store. </p></body></html>
+
+ 0B
@@ -493,12 +493,7 @@
-
- Apt has reported an error. Please use apt update in terminal to locate the problem.
-
-
-
-
+ Uninstall succeeded
@@ -513,17 +508,12 @@
-
- Update finished
-
-
-
-
+ Temporary cache was cleaned
-
+ The URL has been copied to the clipboard
diff --git a/translations/spark-store_fr.ts b/translations/spark-store_fr.ts
index 3f3caa7..2529c5f 100644
--- a/translations/spark-store_fr.ts
+++ b/translations/spark-store_fr.ts
@@ -211,7 +211,7 @@ Nous sommes nés pour le changement.
-
+ Install
@@ -370,7 +370,7 @@ Nous sommes nés pour le changement.
- <html><head/><body><p>The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. </p></body></html>
+ <html><head/><body><p>Check update for Spark Store. </p></body></html>
@@ -380,7 +380,7 @@ Nous sommes nés pour le changement.
- Source Server
+ Spark Store Update
@@ -557,15 +557,15 @@ Nous sommes nés pour le changement.
Redémarrez pour prendre effet
- <html><head/><body><p>源服务器的作用是保证软件更新,并且支持使用apt工具获取软件。通常我们更建议你使用第一个线路作为更新源,一般是最稳定的。</p></body></html>
+ <html><head/><body><p>跳转到星火应用商店主页检测更新。</p></body></html><html><head/><body><p>Le rôle du serveur source est de s'assurer que le logiciel est mis à jour et prend en charge l'utilisation de l'outil apt pour obtenir le logiciel. Nous préférons généralement que vous utilisiez la première ligne comme source de mise à jour, qui est généralement la plus stable. </p></body></html>
- 更新源
+ 跳转更新Mettre à jour la source APT
- 更新源服务器:
+ 星火应用商店更新检测:Source APT:
@@ -650,11 +650,6 @@ Nous sommes nés pour le changement.
Reinstall
-
-
- Update finished
-
- Failed to get the name to the file to be downloaded.
@@ -681,22 +676,17 @@ Nous sommes nés pour le changement.
-
- Apt has reported an error. Please use apt update in terminal to locate the problem.
-
-
-
-
+ Uninstall succeeded
-
+ Temporary cache was cleaned
-
+ The URL has been copied to the clipboard
diff --git a/translations/spark-store_zh_CN.ts b/translations/spark-store_zh_CN.ts
index 1b619df..5545f8c 100644
--- a/translations/spark-store_zh_CN.ts
+++ b/translations/spark-store_zh_CN.ts
@@ -205,7 +205,7 @@
-
+ Install安装
@@ -379,19 +379,18 @@
重启商店后生效
-
- <html><head/><body><p>The role of the source server is to ensure that the software is updated, and supports the use of the apt tool to get the software. We usually prefer that you use the first line as the update source, which is generally the most stable. </p></body></html>
- <html><head/><body><p>源服务器的作用是保证软件更新,并且支持使用apt工具获取软件。通常我们更建议你使用第一个线路作为更新源,一般是最稳定的。</p></body></html>
+ <html><head/><body><p>Jump to the Spark app store home page to check for updates. </p></body></html>
+ <html><head/><body><p>跳转到星火应用商店主页检测更新。</p></body></html>Update
- 更新源
+ 跳转更新
- Source Server
- 更新源服务器
+ Spark Store Update
+ 星火应用商店更新检测
@@ -483,6 +482,11 @@
Take effect when restart重启商店后生效
+
+
+ <html><head/><body><p>Check update for Spark Store. </p></body></html>
+ 检查星火应用商店更新
+ 0B
@@ -519,9 +523,8 @@
不存在
- Update finished
- 更新完毕
+ 更新完毕
@@ -604,9 +607,8 @@
正在更新,请稍候……
- Apt has reported an error. Please use apt update in terminal to locate the problem.
- 更新中发生错误,请在终端使用apt update来查看错误原因。
+ 更新中发生错误,请在终端使用apt update来查看错误原因。Unknown error!
@@ -660,17 +662,17 @@ Click yes to continue.
服务器未知错误
-
+ Uninstall succeeded卸载成功
-
+ Temporary cache was cleaned缓存目录已清空
-
+ The URL has been copied to the clipboard链接已复制到剪贴板