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

Commit be44de9

Browse files
author
15dd
committed
ver1.1.1
1 parent c7c7443 commit be44de9

File tree

2 files changed

+28
-5
lines changed

2 files changed

+28
-5
lines changed

README.md

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
1-
# Aria2 Launcher
1+
<p align="center">
2+
<a>
3+
<img src="/resource/img/ico.png" alt="Logo" width="100" height="100">
4+
</a>
5+
6+
<h2 align="center">Aria2 Launcher</h2>
7+
<p align="center">
8+
一个专为 <b>小白</b> 设计的 <b>Aria2 启动器</b>
9+
<br />
10+
<a href="https://github.com/15dd/Aria2_Launcher/releases"><b>下载</b></a>
11+
<br />
12+
</p>
13+
14+
</p>
15+
216
- 使用C++和Qt6编写的程序
317
- 该程序为Aria2c.exe(即aria2)的一键启动器,专为小白设计
418
- 已集成webui(yaaw)界面
@@ -15,5 +29,6 @@
1529
- 第二种方法:使用浏览器扩展`yaaw for chrome``aria2 for edge`直接自动下载
1630

1731
## 截图
18-
![主界面](resource/readme/1.png)
19-
![设置](resource/readme/2.png)
32+
<center class="half">
33+
<img src="/resource/readme/1.png" height="200"/>&nbsp<img src="/resource/readme/2.png" height="200"/>
34+
</center>

aria2Launcher.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,11 @@ void aria2Launcher::checkAria2Status() { //检测是否已经有aria2c运行,可
116116

117117
void aria2Launcher::showHide() { //根据设置决定是显示窗口还是启动到托盘
118118
if (settingWin->ui->radioButton_6->isChecked()) {
119-
this->show();
119+
this->showNormal();
120+
121+
this->setWindowState(Qt::WindowActive);//窗口置顶
122+
this->activateWindow();
123+
120124
this->resize((this->width()) + 1, (this->height()) + 1);//界面刷新
121125
}
122126
else {
@@ -188,7 +192,11 @@ void aria2Launcher::showWindowsMessage() {//提示程序已进入托盘
188192

189193
void aria2Launcher::showOrHide() {//显示主窗口或隐藏主窗口,托盘事件
190194
if (this->isHidden()) {
191-
this->show();
195+
this->showNormal();
196+
197+
this->setWindowState(Qt::WindowActive);//窗口置顶
198+
this->activateWindow();
199+
192200
this->resize((this->width()) + 1, (this->height()) + 1);//界面刷新
193201
}
194202
else {

0 commit comments

Comments
 (0)