Skip to content

Commit ee8ed28

Browse files
committed
remove floating window part
1 parent ff7dbda commit ee8ed28

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

system_tray.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ def _setup_tray(self):
2525
show_action = tray_menu.addAction("显示主窗口")
2626
show_action.triggered.connect(self._show_window)
2727

28-
toggle_floating_action = tray_menu.addAction("切换悬浮圆环")
29-
toggle_floating_action.triggered.connect(self._toggle_floating_rings)
28+
# toggle_floating_action = tray_menu.addAction("切换悬浮圆环")
29+
# toggle_floating_action.triggered.connect(self._toggle_floating_rings)
3030

3131
tray_menu.addSeparator()
3232

@@ -65,11 +65,11 @@ def _toggle_floating_rings(self):
6565
def _hide_window(self):
6666
"""隐藏主窗口到托盘,并显示悬浮圆环"""
6767
self.main_window.hide()
68-
# 自动显示悬浮圆环
69-
if not self.floating_rings:
70-
self.floating_rings = FloatingTimeRings()
71-
if not self.floating_rings.isVisible():
72-
self.floating_rings.show()
68+
# # 自动显示悬浮圆环
69+
# if not self.floating_rings:
70+
# self.floating_rings = FloatingTimeRings()
71+
# if not self.floating_rings.isVisible():
72+
# self.floating_rings.show()
7373

7474
def _on_tray_activated(self, reason):
7575
"""托盘图标被激活"""

0 commit comments

Comments
 (0)