mirror of
https://github.com/wesnoth/wesnoth
synced 2025-04-28 15:10:28 +00:00
gui2/tgame_cache_options: Display busy cursor while measuring cache size
It can take a while to obtain the size of a directory with a large number of entries, especially when the system is under load.
This commit is contained in:
parent
005d52718a
commit
e6eec06cb7
@ -131,6 +131,7 @@ void tgame_cache_options::update_cache_size_display()
|
||||
return;
|
||||
}
|
||||
|
||||
const cursor::setter cs(cursor::WAIT);
|
||||
const int size = filesystem::dir_size(cache_path_);
|
||||
|
||||
if(size < 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user