mirror of
https://github.com/babalae/better-genshin-impact.git
synced 2026-05-27 10:15:50 +08:00
修复JS脚本选择窗口的对话框结果处理,确保正确获取用户选择的脚本
This commit is contained in:
@@ -339,7 +339,9 @@ public partial class GearTaskListPageViewModel : ViewModel
|
||||
Owner = Application.Current.MainWindow
|
||||
};
|
||||
|
||||
if (jsSelectionWindow.ShowDialog() == true && jsSelectionWindow.ViewModel.SelectedScript != null)
|
||||
jsSelectionWindow.ShowDialog();
|
||||
|
||||
if (jsSelectionWindow.DialogResult && jsSelectionWindow.ViewModel.SelectedScript != null)
|
||||
{
|
||||
var selectedScript = jsSelectionWindow.ViewModel.SelectedScript;
|
||||
newTask = new GearTaskViewModel(selectedScript.DisplayName)
|
||||
|
||||
Reference in New Issue
Block a user