增加图标排序

This commit is contained in:
liufei
2022-01-22 14:20:04 +08:00
parent ca3d6b50e3
commit 1ef3129017
18 changed files with 317 additions and 55 deletions

View File

@@ -25,7 +25,7 @@ namespace GeekDesk.ViewModel
private ObservableCollection<IconInfo> iconList = new ObservableCollection<IconInfo>();
[field: NonSerializedAttribute()]
private string[] NO_WRITE_ARR = new string[] { "IsEdit" };
private static string[] NO_WRITE_ARR = new string[] { "IsEdit" };
public bool IsEdit
@@ -159,7 +159,7 @@ namespace GeekDesk.ViewModel
private void OnPropertyChanged(string propertyName)
{
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(propertyName));
foreach (var field in NO_WRITE_ARR)
foreach (string field in NO_WRITE_ARR)
{
if (field.Equals(propertyName))
{