From ba7c8c2fc3f68b9736c291d6c8c2d11a40890fc2 Mon Sep 17 00:00:00 2001 From: Thomas Farstrike Date: Sun, 4 May 2025 22:46:12 +0200 Subject: [PATCH] Disable notification bar click to open drawer --- internal_filesystem/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal_filesystem/main.py b/internal_filesystem/main.py index 8a5fda65..ed1747c8 100644 --- a/internal_filesystem/main.py +++ b/internal_filesystem/main.py @@ -76,7 +76,7 @@ def add_notification_bar(screen): # Create notification bar object notification_bar = lv.obj(screen) notification_bar.set_style_bg_color(COLOR_NOTIF_BAR_BG, 0) - notification_bar.set_size(320, NOTIFICATION_BAR_HEIGHT) + notification_bar.set_size(TFT_HOR_RES, NOTIFICATION_BAR_HEIGHT) notification_bar.set_pos(0, 0) notification_bar.set_scrollbar_mode(lv.SCROLLBAR_MODE.OFF) notification_bar.set_scroll_dir(lv.DIR.VER) @@ -149,7 +149,7 @@ def add_notification_bar(screen): timer2 = lv.timer_create(update_temperature, TEMPERATURE_UPDATE_INTERVAL, None) timer3 = lv.timer_create(update_memfree, MEMFREE_UPDATE_INTERVAL, None) timer4 = lv.timer_create(update_wifi_icon, WIFI_ICON_UPDATE_INTERVAL, None) - notification_bar.add_event_cb(toggle_drawer, lv.EVENT.CLICKED, None) + #notification_bar.add_event_cb(toggle_drawer, lv.EVENT.CLICKED, None) return timer1, timer2, timer3, timer4