mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-08-22 12:12:20 +08:00
更新文案
This commit is contained in:
parent
44ea6755f9
commit
7f3eadf3a7
src/pages
@ -68,18 +68,6 @@ void SettingsPage::initConfig()
|
|||||||
{
|
{
|
||||||
readServerList();
|
readServerList();
|
||||||
|
|
||||||
// 初始化 apt 源显示
|
|
||||||
QFile aptserver("/etc/apt/sources.list.d/sparkstore.list");
|
|
||||||
aptserver.open(QIODevice::ReadOnly);
|
|
||||||
if(aptserver.isOpen())
|
|
||||||
{
|
|
||||||
ui->label_aptserver->setText(aptserver.readAll());
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ui->label_aptserver->setText(tr("Not Exist"));
|
|
||||||
}
|
|
||||||
aptserver.close();
|
|
||||||
// 读取服务器URL并初始化菜单项的链接
|
// 读取服务器URL并初始化菜单项的链接
|
||||||
QSettings readConfig(QDir::homePath() + "/.config/spark-store/config.ini", QSettings::IniFormat);
|
QSettings readConfig(QDir::homePath() + "/.config/spark-store/config.ini", QSettings::IniFormat);
|
||||||
if(!readConfig.value("server/choose").toString().isEmpty() && readConfig.value("server/updated").toString() == "TRUE")
|
if(!readConfig.value("server/choose").toString().isEmpty() && readConfig.value("server/updated").toString() == "TRUE")
|
||||||
|
@ -163,33 +163,6 @@
|
|||||||
<item>
|
<item>
|
||||||
<widget class="QWidget" name="widget_8" native="true">
|
<widget class="QWidget" name="widget_8" native="true">
|
||||||
<layout class="QGridLayout" name="gridLayout_3">
|
<layout class="QGridLayout" name="gridLayout_3">
|
||||||
<item row="1" column="0" colspan="4">
|
|
||||||
<widget class="QLabel" name="label_7">
|
|
||||||
<property name="styleSheet">
|
|
||||||
<string notr="true">color:#808080</string>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string><html><head/><body><p>Check update for Spark Store. </p></body></html></string>
|
|
||||||
</property>
|
|
||||||
<property name="wordWrap">
|
|
||||||
<bool>true</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="2">
|
|
||||||
<widget class="QPushButton" name="pushButton_updateApt">
|
|
||||||
<property name="text">
|
|
||||||
<string>Update</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="0">
|
|
||||||
<widget class="QLabel" name="label_6">
|
|
||||||
<property name="text">
|
|
||||||
<string>Spark Store Update</string>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="3">
|
<item row="0" column="3">
|
||||||
<spacer name="horizontalSpacer_4">
|
<spacer name="horizontalSpacer_4">
|
||||||
<property name="orientation">
|
<property name="orientation">
|
||||||
@ -203,10 +176,37 @@
|
|||||||
</property>
|
</property>
|
||||||
</spacer>
|
</spacer>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="1" column="0" colspan="4">
|
||||||
|
<widget class="QLabel" name="label_7">
|
||||||
|
<property name="styleSheet">
|
||||||
|
<string notr="true">color:#808080</string>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string><html><head/><body><p>Check update for Spark Store. </p></body></html></string>
|
||||||
|
</property>
|
||||||
|
<property name="wordWrap">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="0">
|
||||||
|
<widget class="QLabel" name="label_6">
|
||||||
|
<property name="text">
|
||||||
|
<string>Spark Store Update</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
|
<item row="0" column="2">
|
||||||
|
<widget class="QPushButton" name="pushButton_updateApt">
|
||||||
|
<property name="text">
|
||||||
|
<string>Update</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="0" column="1">
|
<item row="0" column="1">
|
||||||
<widget class="QLabel" name="label_aptserver">
|
<widget class="QLabel" name="label_aptserver">
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>Server</string>
|
<string/>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user