- add: Foolproof
This commit is contained in:
@@ -42,6 +42,9 @@ public partial class AddFavoriteViewModel : PopupViewModelBase
|
||||
{
|
||||
try
|
||||
{
|
||||
if(string.IsNullOrWhiteSpace(IpInput))
|
||||
throw new Exception(LocalisationService.GetString("popup-add-favorite-invalid-ip"));
|
||||
|
||||
var uri = IpInput.ToRobustUrl();
|
||||
FavoriteServerListProvider.AddFavorite(uri);
|
||||
Dispose();
|
||||
|
||||
Reference in New Issue
Block a user