We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f52960 commit 020c523Copy full SHA for 020c523
internal_filesystem/lib/mpos/ui/topmenu.py
@@ -46,7 +46,8 @@ def close_drawer(to_launcher=False):
46
global drawer_open, drawer
47
if drawer_open:
48
drawer_open=False
49
- if not to_launcher and not "launcher" in get_foreground_app():
+ fg = get_foreground_app()
50
+ if not to_launcher and fg is not None and not "launcher" in fg:
51
print(f"close_drawer: also closing bar because to_launcher is {to_launcher} and foreground_app_name is {get_foreground_app()}")
52
close_bar(False)
53
WidgetAnimator.hide_widget(drawer, anim_type="slide_up", duration=1000, delay=0)
0 commit comments