Closed kethinov closed 6 years ago
@mattlag and @Autre31415 this is a super rough implementation so lemme know what sucks and I'll fix it.
One thing I don't like about it already is it only works via keyboard commands (ctrl/cmd+s for save and ctrl/cmd+shift+s for save as). The visual save button is not handled.
Open to ideas for improvements on how it should work.
I agree, this needs a bit more thought.
Handle it via the (Electron-only) File > Save As option. File menu doesn't exist in the browser version, so could be surfaced / handled separately here.
Treat the save button in the left bar as "Save As" if electron, but if browser then treat as current save experience.
Okay yeah that all makes sense. I'll push an update with those changes.
Can you publish a new version of the main repo that has my changes to it so we can inherit it in the desktop app?
All right, pushed up some changes that reflect those additional requirements.
Pretty hacky in how it interacts with that save button, but it seems to work. If we want to clean up the interactions between how electron talks to that save button, I'll need to PR the main project again. Up to you which way you think we should go with it.
I suppose one more thing I should do on this at least before we merge it is suppress the save/save-as menus on the welcome screen.
Okay, took care of suppressing the save/save-as menus on the welcome screen.
@mattlag and @Autre31415 I think I'm done tweaking it now. Give it a spin and let me know if you think this is good now.
@mattlag I've issued a release that includes these changes here. If you think any other changes should be made let us know and we'll put up another PR.
Closes https://github.com/glyphr-studio/Glyphr-Studio-Desktop/issues/21
Closes https://github.com/glyphr-studio/Glyphr-Studio-Desktop/issues/25
Closes https://github.com/glyphr-studio/Glyphr-Studio-Desktop/issues/26
Probably closes https://github.com/glyphr-studio/Glyphr-Studio-Desktop/issues/14
Makes progress on #4