[goobox] do not restart playing after closing the preferences dialog
- From: Paolo Bacchilega <paobac src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [goobox] do not restart playing after closing the preferences dialog
- Date: Sat, 29 Dec 2018 14:21:29 +0000 (UTC)
commit 49941026a2d63e32dc0c812dea1a7d3857a43bec
Author: Paolo Bacchilega <paobac src gnome org>
Date: Sat Dec 29 14:47:01 2018 +0100
do not restart playing after closing the preferences dialog
src/goo-window.c | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/goo-window.c b/src/goo-window.c
index 25513ec..1af0909 100644
--- a/src/goo-window.c
+++ b/src/goo-window.c
@@ -2599,6 +2599,14 @@ void
goo_window_set_drive (GooWindow *window,
BraseroDrive *drive)
{
+ BraseroDrive *current_drive;
+
+ current_drive = goo_player_get_drive (window->priv->player);
+ if ((drive == NULL) && (current_drive == NULL))
+ return;
+ if ((drive != NULL) && (current_drive != NULL) && (g_strcmp0 (brasero_drive_get_device (drive),
brasero_drive_get_device (current_drive)) == 0))
+ return;
+
goo_player_set_drive (window->priv->player, drive);
goo_player_update (window->priv->player);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]