aboutsummaryrefslogtreecommitdiff
path: root/src/aolayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/aolayer.cpp')
-rw-r--r--src/aolayer.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/aolayer.cpp b/src/aolayer.cpp
index a5e1d9bd..ba7f2cb4 100644
--- a/src/aolayer.cpp
+++ b/src/aolayer.cpp
@@ -153,6 +153,12 @@ void BackgroundLayer::load_image(QString p_filename)
qDebug() << "[BackgroundLayer] BG loaded: " << p_filename;
#endif
QString final_path = ao_app->get_image_suffix(ao_app->get_background_path(p_filename));
+
+ if (final_path == last_path) {
+ // Don't restart background if background is unchanged
+ return;
+ }
+
start_playback(final_path);
play();
}