mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
TabIcon: Don't delay start of loading animation
This commit is contained in:
parent
8681aaaec1
commit
3e3da5909d
|
@ -1,6 +1,6 @@
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
* QupZilla - WebKit based browser
|
* QupZilla - WebKit based browser
|
||||||
* Copyright (C) 2014 David Rosca <nowrep@gmail.com>
|
* Copyright (C) 2014-2016 David Rosca <nowrep@gmail.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -65,9 +65,7 @@ void TabIcon::showLoadingAnimation()
|
||||||
{
|
{
|
||||||
m_currentFrame = 0;
|
m_currentFrame = 0;
|
||||||
|
|
||||||
// Start animation delayed with 100 ms
|
updateAnimationFrame();
|
||||||
m_updateTimer->setInterval(100);
|
|
||||||
m_updateTimer->start();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void TabIcon::hideLoadingAnimation()
|
void TabIcon::hideLoadingAnimation()
|
||||||
|
@ -87,8 +85,8 @@ void TabIcon::showIcon()
|
||||||
void TabIcon::updateAnimationFrame()
|
void TabIcon::updateAnimationFrame()
|
||||||
{
|
{
|
||||||
if (!m_animationRunning) {
|
if (!m_animationRunning) {
|
||||||
|
m_updateTimer->start();
|
||||||
m_animationRunning = true;
|
m_animationRunning = true;
|
||||||
m_updateTimer->setInterval(ANIMATION_INTERVAL);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
update();
|
update();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user