AraBlocks / ara-file-manager

Electron-based desktop app to publish and purchase content with ARA
https://ara.one/app
GNU Lesser General Public License v3.0
26 stars 4 forks source link

Standard window open and close on mac and windows #600

Closed zootella closed 4 years ago

zootella commented 4 years ago

Fixes to close and open the main window and app from the mac dock and windows taskbar notification area

zootella commented 4 years ago

You can close the main File Manager window on macOS and windows with the red traffic light button or X.

Now you can open it again by clicking the Ara icon on the macOS dock, or the taskbar notification area (system tray) icon on Windows.

Menus say 'Quit' on macOS and 'Exit' on Windows.

We don't need an exit confirmation message anymore--users who just want the window off their screen will use X; the app will still be running, and they'll still be earning ARA rewards. Users who right-click and choose Quit/Exit really actually want the end the process, and don't need an additional warning.

Right now we're destroying and recreating the main File Manager window each time the user clears it. Really, we should just be hiding and showing the window. But, tested this change, and may end up replacing the whole UI in the new year instead of making more edits to this code.