Use Quit() method when quitting through the context menu
The Quit() method deletes the pid file correctly and ensures that the `sparkleshare` bash script works correctly.
This commit is contained in:
parent
29dc643578
commit
32b52e0017
|
@ -137,7 +137,7 @@ namespace SparkleShare {
|
|||
|
||||
Menu.Add (new SeparatorMenuItem ());
|
||||
MenuItem QuitItem = new MenuItem (_("Quit"));
|
||||
QuitItem.Activated += delegate { Environment.Exit (0); };
|
||||
QuitItem.Activated += Quit;
|
||||
Menu.Add (QuitItem);
|
||||
Menu.ShowAll ();
|
||||
Menu.Popup (null, null, SetPosition, 0, 0);
|
||||
|
|
Loading…
Reference in a new issue