aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-11-05 13:07:07 +0100
committerdec05eba <dec05eba@protonmail.com>2020-11-05 13:07:07 +0100
commita7f4a5688d4e2e0e4de98c5922db00b186929169 (patch)
treef1ca61273131d8aa2198e8b4980ed435aceee5ed
parent6b2b65af737a6f04e2a251b38694fe1576c2ed68 (diff)
Bring back loading animation
-rw-r--r--src/QuickMedia.cpp9
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);