-
Notifications
You must be signed in to change notification settings - Fork 156
OSX version cannot open new file after closing window #32
Comments
I need more informations about this behaviour. |
I closed all the windows. The app is still runing when the error occurs and the menu bars still there. The error also occurs when opening existing files. |
OK, so this is related to OS X behaviour. |
I guess 088df47 should fix this issue but I need someone to test it on OSX please. You will have to build Abricotine from the osx-menu branch. Expected behaviour: when all windows are closed, the menubar should be updated in order to provide fewer menu items. Please make sure that all menu items are working well when clicked from here. |
When the last window is closed, the menus change as you have said should happen. When attempting to open a new window, the same error occurs, with slightly different line numbers (presumably due to incidental changes to the relevant files). I will also note that menus on OS X do not usually change depending on whether there is a window open. If a menu is no longer relevant, all its options will become greyed out, but it still appears in the menu bar. |
@nloveladyallen Thank you. So I'll keep working on it. |
Remove menu-app.json. We use a single menu for the whole application by adding the "permanent" attribute which identify menu items to keep active when all windows are closed (OSX). Note: commands-main are still used when a command is triggered from the main process (ie no windows). See #32.
This should be fixed with a642a9e
So we moved to this behaviour in d5d020c Could someone give me feedback please? You can try it by building the app from osx-menu branch. Thanks. |
The menus no longer change, and regular items are greyed out. Submenus still show up with their options greyed out, while typically apps grey out the submenu entirely (hovering does nothing). There is now a different error when opening a new window after closing the last one:
|
OK, thank you. |
Could you try it again please?
I don't know how to do this with electron (I'm not even sure it's possible) so in this last revision menus are simply removed when all their items are disabled. Thanks. |
Closing the last window and creating a new document or opening a document now works correctly. I feel it is more disorienting to have the menus disappear than have the submenus still show as active, and that the way it worked as of d5d020c is best. It may not be possible to disable a submenu with Electron; Atom leaves submenus active as well. |
@nloveladyallen thanks
OK, I will revert e6e97dd |
Done and merged osx-menu into develop. |
This error message pop up when trying to open new files after closing the old windows.
The text was updated successfully, but these errors were encountered: