The KML folder is now saved when changing the KML script for a custom one via the menu "Change KML Script...".

The setting "settings_kml_folder_embedded" was not saved when changing the KML script for a custom one via the menu "Change KML Script...".
Scenario:
	1 Create a new calc with embedded KML
	2 "Change KML Script..." with a KML from a custom folder.
	3 Save and Quit
	4 Reopen Emu48, and the selected KML file is lost!
This commit is contained in:
dgis 2020-12-08 00:50:06 +01:00
parent 85cf5f471d
commit efc2139026
3 changed files with 10 additions and 0 deletions

View file

@ -63,6 +63,10 @@ LINKS
CHANGES CHANGES
Version 2.2 (2020-12-08)
- The KML folder is now saved when changing the KML script for a custom one via the menu "Change KML Script...".
Version 2.1 (2020-11-23) Version 2.1 (2020-11-23)

View file

@ -63,6 +63,10 @@ LINKS
CHANGES CHANGES
Version 2.2 (2020-12-08)
- The KML folder is now saved when changing the KML script for a custom one via the menu "Change KML Script...".
Version 2.1 (2020-11-23) Version 2.1 (2020-11-23)

View file

@ -994,6 +994,8 @@ public class MainActivity extends AppCompatActivity implements NavigationView.On
// We only change the KML script here. // We only change the KML script here.
int result = NativeLib.onViewScript(scriptItem.filename, scriptItem.folder); int result = NativeLib.onViewScript(scriptItem.filename, scriptItem.folder);
if(result > 0) { if(result > 0) {
//TODO no need to call changeKMLFolder(scriptItem.folder);
settings.putString("settings_kml_folder_embedded", scriptItem.folder);
displayKMLTitle(); displayKMLTitle();
showKMLLog(); showKMLLog();
} else } else