[intro] Remove broken url syntax check
This commit is contained in:
parent
6c6bf1a567
commit
973b684f62
|
@ -668,10 +668,11 @@ namespace SparkleShare {
|
|||
return;
|
||||
|
||||
bool IsFolder = !FolderEntry.Text.Trim ().Equals ("");
|
||||
bool IsServer = !ServerEntry.Text.Trim ().Equals ("");
|
||||
|
||||
if (ServerEntry.Sensitive == true) {
|
||||
|
||||
if (IsGitUrl (ServerEntry.Text) && IsFolder)
|
||||
if (IsServer && IsFolder)
|
||||
SyncButton.Sensitive = true;
|
||||
|
||||
} else if (IsFolder) {
|
||||
|
@ -683,8 +684,6 @@ namespace SparkleShare {
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// Checks to see if an email address is valid
|
||||
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