Skip to content

Commit ba599a8

Browse files
committed
ux: close AIAssistant dialog immediately after applying the generated message (#2535)
Signed-off-by: leo <longshuang@msn.cn>
1 parent 2e931dd commit ba599a8

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎src/Views/AIAssistant.axaml.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ private void OnUseClicked(object sender, RoutedEventArgs e)
168168
if (DataContext is ViewModels.AIAssistant vm && !string.IsNullOrEmpty(vm.Response))
169169
vm.Use(vm.Response);
170170

171+
Close();
171172
e.Handled = true;
172173
}
173174

0 commit comments

Comments
 (0)