Remove opening of notification centre from date
This commit is contained in:
1 parent
0c91178aaf
commit
f5d3172cef
1 file changed
+6
-3
@@ -130,7 +130,6 @@ class Panel(Window):
|
||||
# Clickable DateTime for notification center
|
||||
self.datetime_button = Button(
|
||||
name="datetime-button",
|
||||
on_clicked=self.notification_center.toggle_mousecapture,
|
||||
child=DateTime(name="date-time", formatters=["%a %-d %b %I:%M %P"]),
|
||||
)
|
||||
|
||||
@@ -173,7 +172,9 @@ class Panel(Window):
|
||||
modus_service.connect("dont-disturb-changed", self.on_dnd_changed)
|
||||
|
||||
# Connect to notification service for icon state updates
|
||||
notification_service.connect("notify::count", self.on_notification_count_changed)
|
||||
notification_service.connect(
|
||||
"notify::count", self.on_notification_count_changed
|
||||
)
|
||||
|
||||
# Set initial notification icon state
|
||||
self.update_notification_icon()
|
||||
@@ -227,5 +228,7 @@ class Panel(Window):
|
||||
# No notifications - show inactive icon
|
||||
icon_file = "notification-inactive.svg"
|
||||
|
||||
icon_path = get_relative_path(f"../../config/assets/icons/notifications/{icon_file}")
|
||||
icon_path = get_relative_path(
|
||||
f"../../config/assets/icons/notifications/{icon_file}"
|
||||
)
|
||||
self.notification_icon.set_from_file(icon_path)
|
||||
Reference in new issue
Block a user