Skip to content

Commit

Permalink
Better transition of splash during application close - don't recreate…
Browse files Browse the repository at this point in the history
… splash
  • Loading branch information
riban committed Oct 14, 2022
1 parent 2024bfa commit 21ff4ca
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions zynthian.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,22 +194,26 @@ while true; do
# Proccess output status
case $status in
0)
splash_zynthian_message "Powering Off..."
#splash_zynthian_message "Powering Off..."
xloadimage -fullscreen -onroot $ZYNTHIAN_CONFIG_DIR/img/fb_zynthian_message.png
poweroff
break
;;
100)
splash_zynthian_message "Rebooting..."
xloadimage -fullscreen -onroot $ZYNTHIAN_CONFIG_DIR/img/fb_zynthian_message.png
#splash_zynthian_message "Rebooting..."
reboot
break
;;
101)
splash_zynthian_message "Exiting..."
xloadimage -fullscreen -onroot $ZYNTHIAN_CONFIG_DIR/img/fb_zynthian_message.png
#splash_zynthian_message "Exiting..."
backlight_off
break
;;
102)
splash_zynthian_message "Restarting UI..."
xloadimage -fullscreen -onroot $ZYNTHIAN_CONFIG_DIR/img/fb_zynthian_message.png
#splash_zynthian_message "Restarting UI..."
load_config_env
sleep 10
;;
Expand Down

2 comments on commit 21ff4ca

@jofemodo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But you have to recreate for getting the right text, my friend!!

@jofemodo
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ahhh! OK! You take profit of the image generated by zynthian_gui_splash!
Forgot it!

Please sign in to comment.