Skip to content

added saving config in web#1647

Merged
ABSitf merged 3 commits intomasterfrom
i2498_web_config
Sep 28, 2023
Merged

added saving config in web#1647
ABSitf merged 3 commits intomasterfrom
i2498_web_config

Conversation

@ABSitf
Copy link
Contributor

@ABSitf ABSitf commented Sep 28, 2023

No description provided.

wasm/config.js Outdated
@@ -0,0 +1,4 @@
window.onbeforeunload = (e) => {
Module.ccall('emsForceSettingsSave', 'void', [], []);
return "good";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need return?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not in this case, but mb in future we want ask for confirmation if scene have changes
removed

Comment on lines +30 to +31
// writes current config to file
MRMESH_API void writeToFile();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mb add comment that is imlicitly called from destructor

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added comment

@ABSitf ABSitf merged commit 25eff60 into master Sep 28, 2023
@ABSitf ABSitf deleted the i2498_web_config branch September 28, 2023 13:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants