mirror of
https://github.com/LorisYounger/VPet.ModMaker.git
synced 2024-08-30 18:22:21 +00:00
修复:
编辑动画出现的异常
This commit is contained in:
parent
34a4bc339f
commit
71632f529a
@ -203,7 +203,6 @@ public class AnimePageVM
|
|||||||
if (window.IsCancel)
|
if (window.IsCancel)
|
||||||
return;
|
return;
|
||||||
Animes[Animes.IndexOf(animeTypeModel)] = newAnime;
|
Animes[Animes.IndexOf(animeTypeModel)] = newAnime;
|
||||||
Animes[Animes.IndexOf(animeTypeModel)] = newAnime;
|
|
||||||
if (ShowAnimes.Value.Count != Animes.Count)
|
if (ShowAnimes.Value.Count != Animes.Count)
|
||||||
ShowAnimes.Value[ShowAnimes.Value.IndexOf(animeTypeModel)] = newAnime;
|
ShowAnimes.Value[ShowAnimes.Value.IndexOf(animeTypeModel)] = newAnime;
|
||||||
}
|
}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
using HKW.HKWUtils.Observable;
|
using HKW.HKWUtils.Observable;
|
||||||
|
using LinePutScript.Localization.WPF;
|
||||||
using System;
|
using System;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Collections.ObjectModel;
|
using System.Collections.ObjectModel;
|
||||||
@ -72,7 +72,7 @@ public partial class SelectGraphTypeWindow : Window
|
|||||||
new(new());
|
new(new());
|
||||||
public ObservableValue<string> AnimeName { get; } = new();
|
public ObservableValue<string> AnimeName { get; } = new();
|
||||||
|
|
||||||
public ObservableValue<bool> HasNameAnime { get; } = new();
|
public ObservableValue<bool> HasNameAnime { get; } = new(true);
|
||||||
|
|
||||||
public bool IsCancel { get; private set; } = true;
|
public bool IsCancel { get; private set; } = true;
|
||||||
|
|
||||||
@ -83,6 +83,16 @@ public partial class SelectGraphTypeWindow : Window
|
|||||||
|
|
||||||
private void Button_Yes_Click(object sender, RoutedEventArgs e)
|
private void Button_Yes_Click(object sender, RoutedEventArgs e)
|
||||||
{
|
{
|
||||||
|
//if (string.IsNullOrWhiteSpace(AnimeName.Value))
|
||||||
|
//{
|
||||||
|
// MessageBox.Show(
|
||||||
|
// "动画名称不能为空".Translate(),
|
||||||
|
// "",
|
||||||
|
// MessageBoxButton.OK,
|
||||||
|
// MessageBoxImage.Warning
|
||||||
|
// );
|
||||||
|
// return;
|
||||||
|
//}
|
||||||
IsCancel = false;
|
IsCancel = false;
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user