diff --git a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs index f66928ad..9660945e 100644 --- a/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/MainWindowViewModel.cs @@ -532,6 +532,10 @@ namespace ServiceLib.ViewModels { 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 507fff0e..d3ca25e8 100644 --- a/v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs +++ b/v2rayN/ServiceLib/ViewModels/ProfilesViewModel.cs @@ -479,7 +479,10 @@ namespace ServiceLib.ViewModels await ConfigHandler.RemoveServer(_config, lstSelecteds); NoticeHandler.Instance.Enqueue(ResUI.OperationSuccess); - + if (lstSelecteds.Count == _profileItems.Count) + { + _profileItems.Clear(); + } RefreshServers(); if (exists) {