feat(modules/panel/components): add wmclass parameter to AboutApp creation

- New Feature: Added support for passing `wmclass` to `AboutApp`.
- Enhancements: Safely fetch `current_active_wm_class` using `getattr` with a default empty string.
- Bug Fixes: Prevent potential error when `current_active_wm_class` attribute is absent.
This commit is contained in:
sankalp committed 2026-04-09 18:34:00 +05:45
1 parent 0c4a375ff6
commit 92c4f20d79
1 file changed
+2 -1
+2 -1
View File
@@ -60,7 +60,8 @@ def show_about_app(_=None):
return
app_name = modus_service.current_active_app_name
about_window = AboutApp(app_name=app_name, wmclass="")
wmclass = getattr(modus_service, "current_active_wm_class", "")
about_window = AboutApp(app_name=app_name, wmclass=wmclass)
about_window.toggle(None)