- add: Foolproof

This commit is contained in:
2025-07-05 20:39:36 +03:00
parent 3bfae32c25
commit a3c96174b2
12 changed files with 179 additions and 10 deletions

View File

@@ -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();