diff options
| author | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2024-05-27 10:22:01 -0500 |
|---|---|---|
| committer | in1tiate <32779090+in1tiate@users.noreply.github.com> | 2024-05-27 10:22:01 -0500 |
| commit | da3b872beb7959eae4c1574e0b1b0a8ae34cb062 (patch) | |
| tree | 1d29e51effee9c469e2a7523cf937b36a0f5d4ac /src/courtroom.cpp | |
| parent | 0475b2a045780d2a8ab4ce439a09cf13a52027ef (diff) | |
just hide the layer in courtroom.cpp
Diffstat (limited to 'src/courtroom.cpp')
| -rw-r--r-- | src/courtroom.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index ce4b982f..cf6a64b1 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -4526,7 +4526,14 @@ void Courtroom::set_scene(bool show_desk, const QString f_side) QPair<QString, QRect> desk_pair = ao_app->get_pos_path(f_side, true); ui_vp_background->loadAndPlayAnimation(bg_pair.first); - ui_vp_desk->loadAndPlayAnimation(desk_pair.first); + if (file_exists(ao_app->get_image_suffix(ao_app->get_background_path(desk_pair.first)))) + { + ui_vp_desk->loadAndPlayAnimation(desk_pair.first); + } + else + { + show_desk = false; + } double scale = double(ui_viewport->height()) / double(ui_vp_background->frameSize().height()); QSize scaled_size = ui_vp_background->frameSize() * scale; |
