public void EditLayerFromDoubleClick() { if (ProfileViewModel.SelectedLayer?.LayerType is FolderType) return; EditLayer(); }