[intro] Remove broken url syntax check
This commit is contained in:
parent
808c8c6446
commit
63a3f99a35
|
@ -668,10 +668,11 @@ namespace SparkleShare {
|
||||||
return;
|
return;
|
||||||
|
|
||||||
bool IsFolder = !FolderEntry.Text.Trim ().Equals ("");
|
bool IsFolder = !FolderEntry.Text.Trim ().Equals ("");
|
||||||
|
bool IsServer = !ServerEntry.Text.Trim ().Equals ("");
|
||||||
|
|
||||||
if (ServerEntry.Sensitive == true) {
|
if (ServerEntry.Sensitive == true) {
|
||||||
|
|
||||||
if (IsGitUrl (ServerEntry.Text) && IsFolder)
|
if (IsServer && IsFolder)
|
||||||
SyncButton.Sensitive = true;
|
SyncButton.Sensitive = true;
|
||||||
|
|
||||||
} else if (IsFolder) {
|
} else if (IsFolder) {
|
||||||
|
@ -683,8 +684,6 @@ namespace SparkleShare {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Checks to see if an email address is valid
|
// Checks to see if an email address is valid
|
||||||
private bool IsValidEmail (string email)
|
private bool IsValidEmail (string email)
|
||||||
{
|
{
|
||||||
|
@ -694,15 +693,6 @@ namespace SparkleShare {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Checks if a url is a valid git url TODO: broken
|
|
||||||
private static bool IsGitUrl (string url)
|
|
||||||
{
|
|
||||||
|
|
||||||
return true;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue