https://bugs.kde.org/show_bug.cgi?id=420365

David Redondo <k...@david-redondo.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Latest Commit|https://invent.kde.org/plas |https://invent.kde.org/plas
                   |ma/plasma-nm/commit/d5df937 |ma/plasma-nm/commit/c36ab9a
                   |9ef9825a65178d5d2335237cd0f |29f70986b5672a9f7b2913a18ef
                   |84b90e                      |1f0aaa

--- Comment #8 from David Redondo <k...@david-redondo.de> ---
Git commit c36ab9a29f70986b5672a9f7b2913a18ef1f0aaa by David Redondo.
Committed on 17/05/2021 at 09:47.
Pushed by davidre into branch 'Plasma/5.22'.

Prevent showing wrong speeds on initial open

Previous attempt was the onCompleted block. However it turns out that
at that point the model still has the old byte amounts.  The order is
showSpeedChanged -> setRefreshRate -> Timer.onCompleted/runningChanged -> model
updates
So set the amount to 0 in onCompleted and trigger the Timer on start
(like a Timer with 0 interval). This initial trigger happens after the
 odel gets a new value and we have a correct amount on the first regular
trigger of the Timer.
FIXED-IN:5.22


(cherry picked from commit d5df9379ef9825a65178d5d2335237cd0f84b90e)

M  +3    -2    applet/contents/ui/ConnectionItem.qml

https://invent.kde.org/plasma/plasma-nm/commit/c36ab9a29f70986b5672a9f7b2913a18ef1f0aaa

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to