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:
1 file changed
+2
-1
@@ -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)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user