TiddlyDesktop
TiddlyDesktop copied to clipboard
Closing the TiddlyDesktop main window should not quit the program on OS X
When opening a TW from the list in the TiddlyDesktop window in 0.0.1 and then closing the TiddlyDesktop window, it would be nice if the application wouldn't exit and the only window remaining would be the TW that opened in a new window. This behaviour is expected from document-centric programs on OS X.
As far as I know, node-webkit always exits the app when the last window closes. I guess we could keep a hidden window around to stop it exiting.
Anyhow, I suppose it depends which bit of OS X one looks at - QuickTime Player has a maddening behaviour of quitting when it has no windows open, but only when the focus shifts to another application :)
I didn't notice that the program quits when closing the last window (yet). My case is that I want to open a TW from the list and then close the window with the list. This should leave me with my TW window, but right now TiddlyDesktop exits.
Off-topic: The QT Player behaviour is most likely caused by OS X's automatic application termination "feature", which also affects e.g. Preview.app. Turn it off with defaults write -g NSDisableAutomaticTermination -bool TRUE
I didn't notice that the program quits when closing the last window (yet). My case is that I want to open a TW from the list and then close the window with the list. This should leave me with my TW window, but right now TiddlyDesktop exits.
Ah, I see. I wasn't planning to make it possible to do that, but again I guess we could allow the window to be hidden.
That might make sense. Then to see it again, just click on the icon in the dock.
+1 Same thing happend on Windows 8.1 64, when i close the main window (the one we use to open the others to be as clear as possible) then all open ones (i have 4 of them open sometimes) close without notice!
+1, I have the following annoying behavior on Mint 17.3 and latest release of TiddlyDesktop. It does not minimize to tray, when I close the main window, my opened Wiki just closes as well.
I am using TiddlyDesktop v0.0.8 on Linux Mint 18.1 and solved this by editing the file TiddlyDesktop-linux64-v0.0.8/js/main.js:
At line 121 is this code:
var wikilistWindow = $tw.desktop.windowList.openByUrl("backstage://WikiListWindow",{mustQuitOnClose: true});
If the value for mustQuitOnOnClose is changed from true to false, then you can close the wiki list window without closing any open wiki window.
@mbarann thank you! This worked perfectly on MacOS using v0.0.8 as well... filename: /Applications/TiddlyWiki.app/Contents/Resources/app.nw/js/main.js
Here's a different possibility: When you open a window, make it the main TiddlyDesktop window with a list of recent wikis. You click one to open and the same window becomes the open wiki. Open a new window (standard "new window" command) to open other wikis.
This way there is no separate (IMO unnecessary) "Main Menu" window.