diff options
author | Lubomir I. Ivanov <neolit123@gmail.com> | 2017-09-02 15:28:40 +0300 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-09-04 07:41:21 -0700 |
commit | a7d8e0d18748fdf72f5d43cceec945c6add74294 (patch) | |
tree | 49c79dc55e307643d0442435e8151619d90c8cbc /packaging | |
parent | 9a2d503d3b3d2c0a4631ef6c26dcf1c6785a4e56 (diff) | |
download | subsurface-a7d8e0d18748fdf72f5d43cceec945c6add74294.tar.gz |
googlemaps: clear the cache folder on language change
Open the cache folder via QDir and call removeRecursively().
At that point the user needs to restart Subsurface to be able to
use the map in another language properly.
This change is triggered by the fact that the user might want to see
the street map in his preferred language after he/she picks another
language from Settings. But one problem here is that the cached files
do not carry a language flag - e.g. they are in the lines of:
googlemaps_100-1-9-445-245.png
Which means that the only way to not mix tiles in different languages
is to clear the cache and start downloading the new tiles in the newly
picked language after Subsurface has restarted.
Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'packaging')
0 files changed, 0 insertions, 0 deletions