[invitation] Change invitation extension to .sparkle
This commit is contained in:
parent
144b1ed59e
commit
882c3253d6
|
@ -20,8 +20,10 @@ using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using System.IO;
|
using System.IO;
|
||||||
|
using System.Net;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
|
using System.Xml;
|
||||||
|
|
||||||
namespace SparkleShare {
|
namespace SparkleShare {
|
||||||
|
|
||||||
|
@ -97,7 +99,9 @@ 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.Name.EndsWith (".invitation")) {
|
if (args.Name.EndsWith (".sparkle")) {
|
||||||
|
|
||||||
|
Console.WriteLine ("YYYYYYYYYYYQQ!!!!!!!");
|
||||||
|
|
||||||
if (OnInvitation != null)
|
if (OnInvitation != null)
|
||||||
OnInvitation (args.FullPath);
|
OnInvitation (args.FullPath);
|
||||||
|
|
|
@ -68,6 +68,7 @@ namespace SparkleShare {
|
||||||
SparkleShare.Controller.OnInvitation += delegate (string invitation_file_path) {
|
SparkleShare.Controller.OnInvitation += delegate (string invitation_file_path) {
|
||||||
Application.Invoke (delegate {
|
Application.Invoke (delegate {
|
||||||
|
|
||||||
|
Console.WriteLine ("INVITATION RECEIVED!!!!1");
|
||||||
SparkleInvitation invitation = new SparkleInvitation (invitation_file_path);
|
SparkleInvitation invitation = new SparkleInvitation (invitation_file_path);
|
||||||
invitation.Present ();
|
invitation.Present ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue