fix url import of workspaces (kmz only)

This commit is contained in:
Stewart Allen 2022-08-04 12:37:42 -04:00
commit 73b5d9abae
2 changed files with 2 additions and 2 deletions

View file

@ -2586,7 +2586,7 @@ gapp.register("kiri.init", [], (root, exports) => {
// load workspace from url
if (SETUP.wrk) {
api.settings.import_url(`${proto}//${SETUP.wrk[0]}`, true);
api.settings.import_url(`${proto}//${SETUP.wrk[0]}`, false);
}
// bind this to UI so main can call it on settings import

View file

@ -593,7 +593,7 @@ function settingsImport(data, ask) {
function settingsImportUrl(url, ask) {
fetch(url).then(r => r.arrayBuffer()).then(a => {
settingsImport(a, ask);
settingsImportZip(a, ask);
}).catch(error => {
console.log({workspace_url: url, error: error.message || error});
api.show.alert('workspace load failed');