video: reset button icon to inactive after video processing

In current state after video is processed and saved button has
video-recording icon, that is confusing.

The change handles exit code of movie.sh script and depending on that
notifies UI to set video-inactive icon. video-recording icon is set,
when the user press button to activate video recording.
This commit is contained in:
Andrey Skvortsov
2025-03-30 00:14:47 +03:00
committed by Martijn Braam
parent 4cbd8c2df7
commit 6a7d2ec85e
3 changed files with 28 additions and 8 deletions

View File

@@ -1008,13 +1008,11 @@ flash_button_clicked(GtkWidget *button, gpointer user_data)
}
void
notify_movie_progress(void)
notify_movie_record_ready(void)
{
if (!movie_start) {
// Recording started
gtk_button_set_icon_name(GTK_BUTTON(movie),
"video-recording-symbolic");
}
movie_start = 0;
gtk_button_set_icon_name(GTK_BUTTON(movie),
"video-inactive-symbolic");
}
void