Skip to content

Commit 27dbbdd

Browse files
committed
feat(托盘): 新增托盘功能,支持退出程序和显示/隐藏界面
1 parent 3a79382 commit 27dbbdd

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
### 🚀 新增功能与优化
22
- **【开机自启】在 设置-更多设置 中开启,开启后首次启动默认不会显示主窗口**
33
- **【浮窗】新增!长按进行拖动(可以保存位置),点击打开便捷抽取窗口**
4+
- **【托盘】新增!可以退出程序、显示/隐藏界面**
45
- **【历史记录】可以选择某位同学进行查看历史记录**
56
- **【更多设置】新增开机自启功能**
67
- **【更多设置】新增显示/隐藏浮窗(便捷抽取浮窗)**

app/common/Changeable_history_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(self, parent=None):
4848

4949
# 选择同学的下拉框
5050
self.student_comboBox = ComboBox()
51-
self.student_comboBox.setFixedWidth(200)
51+
self.student_comboBox.setFixedWidth(320)
5252
self.student_comboBox.setPlaceholderText("选择需要查看历史记录的同学")
5353
self.student_comboBox.addItems([])
5454
self.student_comboBox.setFont(QFont(load_custom_font(), 15))

app/common/history_settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, parent=None):
4343

4444
# 选择同学的下拉框
4545
self.student_comboBox = ComboBox()
46-
self.student_comboBox.setFixedWidth(200)
46+
self.student_comboBox.setFixedWidth(320)
4747
self.student_comboBox.setPlaceholderText("选择需要查看历史记录的同学")
4848
self.student_comboBox.addItems([])
4949
self.student_comboBox.setFont(QFont(load_custom_font(), 15))

app/view/SecRandom.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def __init__(self):
5454
pumping_floating_enabled = foundation_settings.get('pumping_floating_enabled', True)
5555
if pumping_floating_enabled == True:
5656
self.levitation_window.show()
57-
except FileNotFoundError:
57+
except FileNotFoundError as e:
5858
logger.error(f"加载设置时出错: {e}, 使用默认显示浮窗功能")
5959
self.levitation_window.show()
6060
except KeyError:

0 commit comments

Comments
 (0)