We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
1 parent5fc403e commit82451dbCopy full SHA for 82451db
internal_filesystem/lib/mpos/ui/topmenu.py
@@ -44,7 +44,7 @@ def close_drawer(to_launcher=False):
44
drawer_open=False
45
ifnotto_launcherandnotmpos.apps.is_launcher(mpos.ui.foreground_app_name):
46
print(f"close_drawer: also closing bar because to_launcher is{to_launcher} and foreground_app_name is{mpos.ui.foreground_app_name}")
47
-close_bar()
+close_bar(False)
48
WidgetAnimator.hide_widget(drawer,anim_type="slide_up",duration=1000,delay=0)
49
50
defopen_bar():
@@ -58,12 +58,15 @@ def open_bar():
58
else:
59
print("bar already open")
60
61
-defclose_bar():
+defclose_bar(animate=True):
62
globalbar_open,show_bar_animation,hide_bar_animation
63
ifbar_open:
64
bar_open=False
65
show_bar_animation.current_value=show_bar_animation_end_value
66
-hide_bar_animation.start()
+ifanimate:
67
+hide_bar_animation.start()
68
+else:
69
+notification_bar.set_y(hide_bar_animation_end_value)
70
71
72