Skip to content

Conversation

@monofuel
Copy link
Contributor

  • create universal get config / set config functions for all platforms

let key = appName & ":" & fileName
let length = getLocalStorageLength(key.cstring)
if length <= 1: # Only null terminator means no content
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 sure if return "" is the best default behavior?

I don't really want to raise an error if there is no config.
this might be fine? or maybe we want to add a defaultConfig param?

Copy link
Owner

Choose a reason for hiding this comment

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

Its fine.

let key = appName & ":" & fileName
let length = getLocalStorageLength(key.cstring)
if length <= 1: # Only null terminator means no content
return ""
Copy link
Owner

Choose a reason for hiding this comment

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

Its fine.

@treeform treeform merged commit 1ce2b1b into treeform:master Jan 14, 2026
3 checks passed
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