Closed GoogleCodeExporter closed 8 years ago
A patch adding the functionality explained above is attached to this comment.
The
only side effect it has, is that you do not get a dialog box popping up when
trying
to launch an already running GW instance.
Original comment by gergely....@gmail.com
on 2 Aug 2009 at 5:55
Attachments:
Hi Gergely,
Thank you for the great idea, write up, patch.
Possibly a cleaner way to implement this might be to read the ini file for list
of gw
copies. There wouldn't be a need to pass all the paths in shortcut arguments.
Something like
bool copylaunched = false;
foreach (copy in gw.ini)
{
if (copy is not launched)
{
launch();
copylaunched = true;
break;
}
}
if copylaunched == false
msgbox("Was not able to launch gw, all copies already launched")
this could be tweaked to take:
"-sequece" argument and optional set of gw arguments after that "-window -bmp"
to pass to gw executable.
Original comment by keke...@gmail.com
on 3 Aug 2009 at 7:05
That was my first idea too, to get the list of GW copies from either the ini
file, or
from the profilesListBox. Sadly, my C# knowledge is lacking (this is the first
time
ever I touched C# code :P), so I wasn't able to do that.
I do agree, that reading the ini/profilesListBox would be a superior solution,
but I
lacked the knowledge to implement that O:)
Original comment by gergely....@gmail.com
on 3 Aug 2009 at 10:46
Made an update and committed to svn to add this feature. Let me know if it
works out
for you. I decided to go with "-auto" switch. Will make 0.6 beta executable if
you
think this works okay.
Code is kinda hacky and dirty but will be cleaned up.
Original comment by keke...@gmail.com
on 4 Aug 2009 at 1:36
Haven't tried it yet (gonna do it today), but looking at the code change, I
think
I'll be happy with it, thank you!
Original comment by gergely....@gmail.com
on 8 Aug 2009 at 9:10
Cleaned up code a bit more. Will be revamping UI before doing 0.6 beta release.
Way too many buttons at the moment.
Original comment by keke...@gmail.com
on 10 Aug 2009 at 4:25
Original issue reported on code.google.com by
gergely....@gmail.com
on 2 Aug 2009 at 5:42