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
|
||||
* 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
|
||||
* it under the terms of the GNU General Public License as published by
|
||||
|
@ -65,9 +65,7 @@ void TabIcon::showLoadingAnimation()
|
|||
{
|
||||
m_currentFrame = 0;
|
||||
|
||||
// Start animation delayed with 100 ms
|
||||
m_updateTimer->setInterval(100);
|
||||
m_updateTimer->start();
|
||||
updateAnimationFrame();
|
||||
}
|
||||
|
||||
void TabIcon::hideLoadingAnimation()
|
||||
|
@ -87,8 +85,8 @@ void TabIcon::showIcon()
|
|||
void TabIcon::updateAnimationFrame()
|
||||
{
|
||||
if (!m_animationRunning) {
|
||||
m_updateTimer->start();
|
||||
m_animationRunning = true;
|
||||
m_updateTimer->setInterval(ANIMATION_INTERVAL);
|
||||
}
|
||||
|
||||
update();
|
||||
|
|
Loading…
Reference in New Issue
Block a user