[controller] Add TODO
This commit is contained in:
parent
1d3bf639ea
commit
ff11a81856
|
@ -59,7 +59,7 @@ namespace SparkleShare {
|
||||||
public delegate void OnErrorEventHandler ();
|
public delegate void OnErrorEventHandler ();
|
||||||
|
|
||||||
public event OnInvitationEventHandler OnInvitation;
|
public event OnInvitationEventHandler OnInvitation;
|
||||||
public delegate void OnInvitationEventHandler (string server, string name, string token);
|
public delegate void OnInvitationEventHandler (string server, string folder, string token);
|
||||||
|
|
||||||
public event ConflictNotificationRaisedEventHandler ConflictNotificationRaised;
|
public event ConflictNotificationRaisedEventHandler ConflictNotificationRaised;
|
||||||
public delegate void ConflictNotificationRaisedEventHandler ();
|
public delegate void ConflictNotificationRaisedEventHandler ();
|
||||||
|
@ -116,7 +116,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
// Handle invitations when the user saves an
|
// Handle invitations when the user saves an
|
||||||
// invitation into the SparkleShare folder
|
// invitation into the SparkleShare folder
|
||||||
if (args.FullPath.EndsWith (".sparkle")) {
|
if (args.Name.EndsWith (".sparkle")) {
|
||||||
|
|
||||||
XmlDocument xml_doc = new XmlDocument ();
|
XmlDocument xml_doc = new XmlDocument ();
|
||||||
xml_doc.Load (args.Name);
|
xml_doc.Load (args.Name);
|
||||||
|
@ -125,10 +125,10 @@ namespace SparkleShare {
|
||||||
string folder = xml_doc.GetElementsByTagName ("folder") [0].InnerText;
|
string folder = xml_doc.GetElementsByTagName ("folder") [0].InnerText;
|
||||||
string token = xml_doc.GetElementsByTagName ("token") [0].InnerText;
|
string token = xml_doc.GetElementsByTagName ("token") [0].InnerText;
|
||||||
|
|
||||||
|
// TODO: this is broken :\
|
||||||
if (OnInvitation != null)
|
if (OnInvitation != null)
|
||||||
OnInvitation (server, folder, token);
|
OnInvitation (server, folder, token);
|
||||||
|
|
||||||
|
|
||||||
} else if (Directory.Exists (Path.Combine (args.FullPath, ".git"))) {
|
} else if (Directory.Exists (Path.Combine (args.FullPath, ".git"))) {
|
||||||
|
|
||||||
AddRepository (args.FullPath);
|
AddRepository (args.FullPath);
|
||||||
|
|
Loading…
Reference in a new issue