diff options
author | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-02-27 20:47:10 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <bjorn@lindeijer.nl> | 2025-03-01 20:02:18 +0000 |
commit | 6cf91666c48925be884f6e4ef96eac541b74d3b6 (patch) | |
tree | a3916a75031d5c461dae690362784d04a8cd14ad /data | |
parent | 9c5f35ab258055fe70a94999a685ddb67184484b (diff) | |
download | mana-6cf91666c48925be884f6e4ef96eac541b74d3b6.tar.gz mana-6cf91666c48925be884f6e4ef96eac541b74d3b6.tar.bz2 mana-6cf91666c48925be884f6e4ef96eac541b74d3b6.tar.xz mana-6cf91666c48925be884f6e4ef96eac541b74d3b6.zip |
Further Download related cleanups
* Moved the memory buffer and mutex handling into the Download class to
simplify the code updating the UI in ServerDialog and UpdaterWindow.
* Replaced the "DownloadUpdate" callback function with simply polling
Download::getState, since in the end polling was happening anyway.
This changes also fixes handling of the Enter key while downloading
updates, which no longer cancels the update process. Also, when pressing
Escape while things are being downloaded, the first press cancels and
only the second press goes back to login.
Introduced a ThreadSafe template class, which wraps any type and makes
it only accessible by calling lock(). This ensures the data is never
accessed without locking the relevant mutex.
Diffstat (limited to 'data')
0 files changed, 0 insertions, 0 deletions