aboutsummaryrefslogtreecommitdiff
path: root/src/courtroom.cpp
diff options
context:
space:
mode:
authorTrickyLeifa <date.epoch@gmail.com>2024-05-23 00:02:07 +0200
committerTrickyLeifa <date.epoch@gmail.com>2024-05-23 00:02:07 +0200
commit29284c0b21408131b280744f58b78b2792d6a826 (patch)
treed664f474696f4728a4ba75600fff57d24650097e /src/courtroom.cpp
parentd135bbc51144667fb3ee323a7635e3dbfc3f41a8 (diff)
Removed theme submodule, ...
* Removed theme submodule. * This should be handled by the CI. * Fixed effects not disappearing when they should (cull / repeat)
Diffstat (limited to 'src/courtroom.cpp')
-rw-r--r--src/courtroom.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp
index 13467976..4540c270 100644
--- a/src/courtroom.cpp
+++ b/src/courtroom.cpp
@@ -3157,6 +3157,8 @@ void Courtroom::do_effect(QString fx_path, QString fx_sound, QString p_char, QSt
QString effect = ao_app->get_effect(fx_path, p_char, p_folder);
if (effect == "")
{
+ ui_vp_effect->stopPlayback();
+ ui_vp_effect->hide();
return;
}
@@ -3173,8 +3175,6 @@ void Courtroom::do_effect(QString fx_path, QString fx_sound, QString p_char, QSt
ui_vp_effect->setTransformationMode(ao_app->get_scaling(ao_app->get_effect_property(fx_path, p_char, p_folder, "scaling")));
ui_vp_effect->setStretchToFit(ao_app->get_effect_property(fx_path, p_char, p_folder, "stretch").startsWith("true"));
ui_vp_effect->setFlipped(ao_app->get_effect_property(fx_path, p_char, p_folder, "respect_flip").startsWith("true") && m_chatmessage[FLIP].toInt() == 1);
- ui_vp_effect->setPlayOnce(false); // The effects themselves dictate whether or not they're looping.
- // Static effects will linger.
bool looping = ao_app->get_effect_property(fx_path, p_char, p_folder, "loop").startsWith("true");