subsurface/desktop-widgets
Lubomir I. Ivanov a7d8e0d187 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>
2017-09-04 07:41:21 -07:00
..
css Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
marble Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
plugins Creation of dive duration string and surface interval string 2017-05-26 15:50:52 -07:00
preferences googlemaps: clear the cache folder on language change 2017-09-04 07:41:21 -07:00
statistics Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
tab-widgets maintab: use GlobeGPS / MapWidget abstraction 2017-07-28 07:31:11 -07:00
about.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
about.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
about.ui For About UI window layout, use SetFixedSize. 2017-03-07 21:45:05 -08:00
btdeviceselectiondialog.cpp BLE handling: create helper function to add the LE: prefix 2017-06-30 13:12:07 -07:00
btdeviceselectiondialog.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
btdeviceselectiondialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
CMakeLists.txt desktop-widgets/cmake: include "qmlmapwidgethelper.cpp" 2017-07-28 07:31:11 -07:00
configuredivecomputerdialog.cpp Configure ostc4: Wire up reset button 2017-08-01 13:39:35 -07:00
configuredivecomputerdialog.h Remove old duplicated code 2017-06-21 18:43:15 -07:00
configuredivecomputerdialog.ui Configure ostc4: Correct button sensitivity range 2017-08-01 13:39:35 -07:00
divecomponentselection.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divecomputermanagementdialog.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
divecomputermanagementdialog.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
divecomputermanagementdialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
divelistview.cpp File selector should filter images we can actually handle. 2017-05-06 08:07:16 -07:00
divelistview.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
divelogexportdialog.cpp Another unused variable 2017-08-26 14:48:05 -07:00
divelogexportdialog.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
divelogexportdialog.ui Export to TeX file initialized 2016-10-11 22:00:08 -07:00
divelogimportdialog.cpp Refactor Seabear import 2017-05-07 13:53:52 +03:00
divelogimportdialog.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
divelogimportdialog.ui Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
divepicturewidget.cpp Fix some warnings 2017-05-06 11:12:28 -07:00
divepicturewidget.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
diveplanner.cpp Random whitespace cleanup 2017-05-27 11:07:20 -07:00
diveplanner.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
diveplanner.ui Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
diveshareexportdialog.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
diveshareexportdialog.h Random whitespace cleanup 2017-05-27 11:07:20 -07:00
diveshareexportdialog.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
downloadfromdivecomputer.cpp Fix possible memory corruption 2017-07-28 15:16:46 -07:00
downloadfromdivecomputer.h Reduce the scope of variables 2017-05-27 11:07:19 -07:00
downloadfromdivecomputer.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
filterwidget.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
globe.cpp globe.cpp/h: remove the dummy QLabel based widget 2017-07-28 07:31:11 -07:00
globe.h globe.cpp/h: remove the dummy QLabel based widget 2017-07-28 07:31:11 -07:00
groupedlineedit.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
groupedlineedit.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
kmessagewidget.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
kmessagewidget.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
listfilter.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
locationinformation.cpp locationinformationwidget: abstract between GlobeGPS and MapWidget 2017-07-28 07:31:11 -07:00
locationinformation.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
locationInformation.ui Move subsurface-core to core and qt-mobile to mobile-widgets 2016-04-04 22:33:58 -07:00
mainwindow.cpp mapwidget: add public slot endGetDiveCoordinates() 2017-07-28 07:31:11 -07:00
mainwindow.h mainwindow: rename GLOBE_MAXIMIZED to MAP_MAXIMIZED 2017-07-28 07:31:11 -07:00
mainwindow.ui mainwindow: rename "actionViewGlobe" to "actionViewMap" 2017-07-28 07:31:11 -07:00
mapwidget.cpp Map: try to wait for Map to load 2017-07-28 22:06:34 -07:00
mapwidget.h Map: try to wait for Map to load 2017-07-28 22:06:34 -07:00
modeldelegates.cpp Allow weight system name to be edited 2017-05-09 07:40:26 -07:00
modeldelegates.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
notificationwidget.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
notificationwidget.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
plannerDetails.ui Bring back style sheet HTML for planner output 2017-02-24 01:06:09 -08:00
plannerSettings.ui Prefix and suffix changes in preferences and planner preferences 2017-03-18 08:34:04 -07:00
printdialog.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
printdialog.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
printer.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
printer.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
printoptions.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
printoptions.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
printoptions.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
qtwaitingspinner.cpp Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
qtwaitingspinner.h Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
renumber.ui Renumber ui: make it obvious which dives get renumbered 2016-12-27 13:10:18 -08:00
searchbar.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
setpoint.ui Correct "set-point" -> "setpoint" and window title setpoint change 2017-03-04 12:04:20 -08:00
shiftimagetimes.ui Picture feature: Improve UI and translation of shift image times dialog 2017-04-30 12:44:58 -07:00
shifttimes.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
simplewidgets.cpp simplewidgets.cpp: silence warning about parentheses 2017-06-11 15:57:08 -07:00
simplewidgets.h Picture feature: Improve UI and translation of shift image times... 2017-05-01 21:23:42 -07:00
starwidget.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
starwidget.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
subsurfacewebservices.cpp subsurfacewebservices: abstract between GlobeGPS and MapWidget 2017-07-28 07:31:11 -07:00
subsurfacewebservices.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
tableview.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
tableview.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
tableview.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00
tagwidget.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
tagwidget.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
templateedit.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
templateedit.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
templateedit.ui templateedit.ui: give the layout for "Border width" unique name 2017-03-12 09:19:03 -07:00
templatelayout.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
templatelayout.h Creation of dive duration string and surface interval string 2017-05-26 15:50:52 -07:00
undocommands.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
undocommands.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
updatemanager.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
updatemanager.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
urldialog.ui Make the URL dialog contain QLineEdit 2017-01-12 14:06:54 -08:00
usermanual.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
usermanual.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
usersurvey.cpp Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
usersurvey.h Add SPDX header to desktop widgets 2017-04-29 13:32:55 -07:00
usersurvey.ui fix: User survey UI. 2017-03-06 06:40:00 -08:00
webservices.ui Move qt-ui to desktop-widgets 2015-10-30 10:36:49 -07:00