Skip to content

Force Proxy to any Windows/MacOS/Linux Application TCP and UDP traffic

fixed thread error on profile savee

AnoF-Cyberd81e1266cbcd
diff --git a/Windows/gui/ViewModels/MainWindowViewModel.cs b/Windows/gui/ViewModels/MainWindowViewModel.cs
index 4976793..c803dd9 100644
--- a/Windows/gui/ViewModels/MainWindowViewModel.cs
+++ b/Windows/gui/ViewModels/MainWindowViewModel.cs
@@ -1060,7 +1060,9 @@ public class MainWindowViewModel : ViewModelBase
private void SaveCurrentProfileAsync()
{
- Task.Run(SaveCurrentProfile);
+ var name = _activeProfileName;
+ var profile = BuildCurrentProfile();
+ Task.Run(() => ProfileManager.SaveProfile(name, profile));
}
private ProxyProfile BuildCurrentProfile()