refactor(modules): clean up dock update logic and fix TOTP action closure
- Refactor dock update loop to use explicit parentheses and improve readability - Fix closure capture in OTP plugin action to correctly pass current code - Remove redundant lambda wrapper in player label binding - Update logger messages with full exception context - Adjust imports and naming for consistency across modules - Minor code style updates and whitespace cleanup
This commit is contained in:
12 files changed
+48
-39
No files matched your search
@@ -5,22 +5,22 @@ from fabric.widgets.centerbox import CenterBox
|
||||
from fabric.widgets.datetime import DateTime
|
||||
from fabric.widgets.revealer import Revealer
|
||||
from fabric.widgets.wayland import WaylandWindow as Window
|
||||
from modules.panel.components.globalmenu import GlobalMenu
|
||||
from modules.panel.components.workspace import WorkspaceIndicator
|
||||
from utils.utils import setup_cursor_hover, svg_file
|
||||
|
||||
from modules.controlcenter.main import ModusControlCenter
|
||||
from modules.notification.notification_center import NotificationCenter
|
||||
from modules.panel.components.enhanced_system_tray import apply_enhanced_system_tray
|
||||
from modules.panel.components.globalmenu import GlobalMenu
|
||||
from modules.panel.components.indicators import (
|
||||
BatteryIndicator,
|
||||
BluetoothIndicator,
|
||||
NetworkIndicator,
|
||||
)
|
||||
from modules.panel.components.recording_indicator import RecordingIndicator
|
||||
from modules.panel.components.workspace import WorkspaceIndicator
|
||||
from services.config import get_config, on_config_change
|
||||
from services.modus import notification_service
|
||||
from utils.roam import modus_service
|
||||
from utils.utils import setup_cursor_hover, svg_file
|
||||
from widgets.mousecapture import MouseCapture
|
||||
|
||||
apply_enhanced_system_tray()
|
||||
@@ -29,12 +29,11 @@ apply_enhanced_system_tray()
|
||||
class Panel(Window):
|
||||
def __init__(self, **kwargs):
|
||||
super().__init__(
|
||||
name="panel-window",
|
||||
name="bar",
|
||||
title="modus",
|
||||
layer="top",
|
||||
anchor="left top right",
|
||||
exclusivity="auto",
|
||||
pass_through=False,
|
||||
visible=True,
|
||||
all_visible=False,
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user