sync only if window is opened
[HTML5TV.git] / lib / HTML5TV / Slides.pm
index 9b9b985..23d3b52 100644 (file)
@@ -104,7 +104,7 @@ sub show {
 
        }
 
-       $self->{app}->sync;
+       $self->{app}->sync if $self->{app};
 
 }