Update slideshowMusic.lua
Test if old_view is nil
This commit is contained in:
@@ -59,7 +59,7 @@ local function playSlideshowMusic(_, old_view, new_view)
|
||||
--dt.print_error(playCommand)
|
||||
coroutine.yield("RUN_COMMAND", playCommand)
|
||||
else
|
||||
if (old_view.id == "slideshow") then
|
||||
if (old_view and old_view.id == "slideshow") then
|
||||
stopCommand = "rhythmbox-client --pause"
|
||||
--dt.print_error(stopCommand)
|
||||
coroutine.yield("RUN_COMMAND", stopCommand)
|
||||
|
||||
Reference in New Issue
Block a user