Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit 59f23f4

Browse files
author
15dd
committed
ver1.3 build2
1 parent ef4aa36 commit 59f23f4

File tree

5 files changed

+12
-4
lines changed

5 files changed

+12
-4
lines changed

aria2Launcher.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,17 @@ aria2Launcher::~aria2Launcher()
4747
void aria2Launcher::isWebui(int state) {
4848
if (state == Qt::Checked) { //webui启用时,webui选择菜单项可用
4949
ui->webui->setEnabled(true);
50+
ui->webui->setChecked(true);
5051
showWebui();
52+
53+
settingWin->ui->groupBox_2->setEnabled(true);
5154
}
5255
else { //webui禁用时,webui选择菜单项禁用,将当前主窗口显示画面变为cmd界面
5356
ui->webui->setEnabled(false);
5457
showCmd();
5558
ui->cmd->setChecked(true);
59+
60+
settingWin->ui->groupBox_2->setEnabled(false);
5661
}
5762
}
5863

aria2Launcher.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ class aria2Launcher : public QMainWindow
3535
void checkFile();//检测所需文件是否存在
3636
void closeEvent(QCloseEvent* event);//关闭事件
3737
DWORD FindProcessIDByName(const std::string& processName); //寻找aria2c.exe的pid
38-
void startWithWindows(int state); //开机启动
3938
void showInitialize();
4039
private:
4140
qint64 pid; //pid
@@ -54,6 +53,7 @@ private slots:
5453
void showCmd();//显示cmd
5554
void showWebui();//显示webui
5655
void isWebui(int state);
56+
void startWithWindows(int state); //开机启动
5757
};
5858

5959

settingWindow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ setting::setting(QWidget* parent) :
2424
showWebui(Qt::Checked);
2525
}
2626

27-
connect(ui->sww, SIGNAL(stateChanged(int)), this, SLOT(startWithWindows(int)), Qt::UniqueConnection);
27+
connect(ui->sww, SIGNAL(stateChanged(int)), this, SLOT(startWithWindows(int)));
2828
connect(ui->sh, SIGNAL(stateChanged(int)), this, SLOT(startHide(int)));
2929
connect(ui->tn, SIGNAL(stateChanged(int)), this, SLOT(trayNotice(int)));
3030
connect(ui->isWebui, SIGNAL(stateChanged(int)), this, SLOT(showWebui(int)));

settingWindow.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class setting : public QDialog {
1212
~setting();
1313

1414
void settingInitialize(); //读取数据,初始化单选项
15-
public slots:
15+
private slots:
1616
void startWithWindows(int state);
1717
void startHide(int state);
1818
void trayNotice(int state);

settingWindow.ui

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,9 @@
7272
<property name="text">
7373
<string>YAAW</string>
7474
</property>
75+
<property name="checked">
76+
<bool>true</bool>
77+
</property>
7578
</widget>
7679
</item>
7780
<item row="0" column="1" alignment="Qt::AlignHCenter">
@@ -87,7 +90,7 @@
8790
<string>AriaNg</string>
8891
</property>
8992
<property name="checked">
90-
<bool>true</bool>
93+
<bool>false</bool>
9194
</property>
9295
</widget>
9396
</item>

0 commit comments

Comments
 (0)