fill in default repo url when possible
This commit is contained in:
parent
33331fe998
commit
9c12af4b19
|
@ -36,7 +36,7 @@ namespace SparkleShare {
|
||||||
private ComboBoxEntry RemoteUrlCombo;
|
private ComboBoxEntry RemoteUrlCombo;
|
||||||
private Table Table;
|
private Table Table;
|
||||||
|
|
||||||
public SparkleDialog () : base ("") {
|
public SparkleDialog (string Url) : base ("") {
|
||||||
|
|
||||||
BorderWidth = 6;
|
BorderWidth = 6;
|
||||||
IconName = "folder-sparkleshare";
|
IconName = "folder-sparkleshare";
|
||||||
|
@ -50,6 +50,7 @@ namespace SparkleShare {
|
||||||
Label RemoteUrlLabel = new Label (_("Address: "));
|
Label RemoteUrlLabel = new Label (_("Address: "));
|
||||||
|
|
||||||
RemoteUrlCombo = new ComboBoxEntry ();
|
RemoteUrlCombo = new ComboBoxEntry ();
|
||||||
|
RemoteUrlCombo.Entry.Text = Url;
|
||||||
|
|
||||||
ListStore Defaults = new ListStore (typeof (string),
|
ListStore Defaults = new ListStore (typeof (string),
|
||||||
typeof (Gdk.Pixbuf));
|
typeof (Gdk.Pixbuf));
|
||||||
|
@ -157,6 +158,27 @@ namespace SparkleShare {
|
||||||
|
|
||||||
if (Output.Contains ("fatal")) {
|
if (Output.Contains ("fatal")) {
|
||||||
Console.WriteLine ("SOMETHING WENT WRONG!!!");
|
Console.WriteLine ("SOMETHING WENT WRONG!!!");
|
||||||
|
|
||||||
|
SparkleBubble =
|
||||||
|
new SparkleBubble ("Something went wrong while syncing " +
|
||||||
|
" ‘" + RepoName + "’",
|
||||||
|
"Please double check your address and\n" +
|
||||||
|
"network connection.");
|
||||||
|
|
||||||
|
SparkleBubble.AddAction ("", _("Try Again…"),
|
||||||
|
delegate {
|
||||||
|
Process.StartInfo.FileName = "xdg-open";
|
||||||
|
Process.StartInfo.Arguments =
|
||||||
|
SparkleHelpers.CombineMore (
|
||||||
|
SparklePaths.SparklePath, RepoName);
|
||||||
|
Process.Start();
|
||||||
|
} );
|
||||||
|
|
||||||
|
SparkleDialog SparkleDialog = new SparkleDialog (RepoRemoteUrl);
|
||||||
|
SparkleDialog.ShowAll ();
|
||||||
|
|
||||||
|
Destroy ();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Move the folder to the SparkleShare folder when done cloning
|
// Move the folder to the SparkleShare folder when done cloning
|
||||||
|
|
|
@ -84,7 +84,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
MenuItem AddItem = new MenuItem (_("Add a Folder…"));
|
MenuItem AddItem = new MenuItem (_("Add a Folder…"));
|
||||||
AddItem.Activated += delegate {
|
AddItem.Activated += delegate {
|
||||||
SparkleDialog SparkleDialog = new SparkleDialog ();
|
SparkleDialog SparkleDialog = new SparkleDialog ("");
|
||||||
SparkleDialog.ShowAll ();
|
SparkleDialog.ShowAll ();
|
||||||
};
|
};
|
||||||
Menu.Add (AddItem);
|
Menu.Add (AddItem);
|
||||||
|
|
|
@ -123,7 +123,7 @@ namespace SparkleShare {
|
||||||
|
|
||||||
NoFoldersBubble.IconName = "folder-sparkleshare";
|
NoFoldersBubble.IconName = "folder-sparkleshare";
|
||||||
NoFoldersBubble.AddAction ("", "Add a Folder…", delegate {
|
NoFoldersBubble.AddAction ("", "Add a Folder…", delegate {
|
||||||
SparkleDialog SparkleDialog = new SparkleDialog ();
|
SparkleDialog SparkleDialog = new SparkleDialog ("");
|
||||||
SparkleDialog.ShowAll ();
|
SparkleDialog.ShowAll ();
|
||||||
/* Process.StartInfo.FileName = "xdg-open";
|
/* Process.StartInfo.FileName = "xdg-open";
|
||||||
Process.StartInfo.Arguments = SparklePaths.SparklePath;
|
Process.StartInfo.Arguments = SparklePaths.SparklePath;
|
||||||
|
|
Loading…
Reference in a new issue