solus-cold-storage / journal

GNU General Public License v2.0
9 stars 5 forks source link

Open files into new tab when launching Journal a second time #9

Closed MatthewScholefield closed 9 years ago

MatthewScholefield commented 9 years ago

When using a file manager and opening 2 text files, each will open in a new window, not one window with two tabs.

ryanleesipes commented 9 years ago

Yes, this is an issue. You can open them by selecting them at once (with shift or ctrl click) - but I will see if I can get it to recognize there is already an instance running.

ikeydoherty commented 9 years ago

Your run application callback creates a new window each time. Instead you should hold a reference to the main window, if its null create a new one, if not just show it :)

ryanleesipes commented 9 years ago

This has been fixed with most recent commit: https://github.com/evolve-os/journal/commit/bce522924ad39db4c523627b51e25fce108d1245