diff --git a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs index f66928add6b..9660945eb4e 100644 --- a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs @@ -532,6 +532,10 @@ private async Task OpenTheFileLocation() { Utils.ProcessStart("nautilus", Utils.GetConfigPath()); } + else if (Utils.IsOSX()) + { + Utils.ProcessStart("open", Utils.GetConfigPath()); + } } #endregion Setting diff --git a/v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs b/v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs index 507fff0ef76..d3ca25e8f28 100644 --- a/v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs @@ -479,7 +479,10 @@ public async Task RemoveServerAsync() await ConfigHandler.RemoveServer(_config, lstSelecteds); NoticeHandler.Instance.Enqueue(ResUI.OperationSuccess); - + if (lstSelecteds.Count == _profileItems.Count) + { + _profileItems.Clear(); + } RefreshServers(); if (exists) {