Enable resizable windows! And proper dialog window styles!
Tool window titlebar text is truncated with ellipses now instead of making the window ridiculously wide for some languages, e.g. EspaƱol which reads "Herramientas" for "Tools"
- Added system hooks `writeBlobToHandle` and `readBlobFromHandle` getting ready for Recent Files feature and for tighter 98.js.org integration (iframe host integration)
- Removed `file_name_chosen` state; File > Save no longer prompts for a file type/name after opening a file unless the format is not supported for saving. (You can always do Save As if you want a new file name.)
- Replace `document_file_path` and `file_handle` with unified `system_file_handle`, which can be a different type for different backends (File System Access API vs Electron vs iframe host).
- Add error handling for permission declination.
It's insane to maintain this list of var names, to reign in the hundreds of errors that rain down just so wading thru is less of a pain.
There's still far much more chaff then there's grain.
This is obviously not a good linting situation, but it's what I've got right now, and it found a few bugs.
Or, I *managed to find* a few bugs with it, let's not give it too much credit.
Localization shouldn't be involved in logic checking for specific tools.
This pattern is just ridiculous looking:
select_tool(get_tool_by_name(localize("Select")));