diff options
author | dec05eba <dec05eba@protonmail.com> | 2020-11-05 13:07:07 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-11-05 13:07:07 +0100 |
commit | a7f4a5688d4e2e0e4de98c5922db00b186929169 (patch) | |
tree | f1ca61273131d8aa2198e8b4980ed435aceee5ed /src | |
parent | 6b2b65af737a6f04e2a251b38694fe1576c2ed68 (diff) |
Bring back loading animation
Diffstat (limited to 'src')
-rw-r--r-- | src/QuickMedia.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/QuickMedia.cpp b/src/QuickMedia.cpp index c9072b2..f3aeda5 100644 --- a/src/QuickMedia.cpp +++ b/src/QuickMedia.cpp @@ -1355,11 +1355,11 @@ namespace QuickMedia { } if(matrix && !matrix->is_initial_sync_finished()) { - if(is_login_sync) { + // if(is_login_sync) { load_sprite.setPosition(body_pos.x + body_size.x * 0.5f, body_pos.y + body_size.y * 0.5f); load_sprite.setRotation(load_sprite_timer.getElapsedTime().asSeconds() * 400.0); window.draw(load_sprite); - } + // } std::string err_msg; if(matrix->did_initial_sync_fail(err_msg)) { show_notification("QuickMedia", "Initial matrix sync failed, error: " + err_msg, Urgency::CRITICAL); @@ -4274,11 +4274,6 @@ namespace QuickMedia { } if(matrix && !matrix->is_initial_sync_finished()) { - if(is_login_sync) { - load_sprite.setPosition(body_pos.x + body_size.x * 0.5f, body_pos.y + body_size.y * 0.5f); - load_sprite.setRotation(load_sprite_timer.getElapsedTime().asSeconds() * 400.0); - window.draw(load_sprite); - } std::string err_msg; if(matrix->did_initial_sync_fail(err_msg)) { show_notification("QuickMedia", "Initial matrix sync failed, error: " + err_msg, Urgency::CRITICAL); |