🎨 Optimize code

This commit is contained in:
2025-06-22 15:08:38 +08:00
parent 35c89e086e
commit eb9b037f8e
22 changed files with 937 additions and 1906 deletions

View File

@@ -26,7 +26,6 @@ func NewDialogService(logger *log.LoggerService) *DialogService {
// SetWindow 设置绑定的窗口
func (ds *DialogService) SetWindow(window *application.WebviewWindow) {
ds.window = window
ds.logger.Info("Dialog service window binding updated")
}
// SelectDirectory 打开目录选择对话框
@@ -65,10 +64,7 @@ func (ds *DialogService) SelectDirectory() (string, error) {
path, err := dialog.PromptForSingleSelection()
if err != nil {
ds.logger.Error("Failed to select directory", "error", err)
return "", err
}
ds.logger.Info("Directory selected", "path", path)
return path, nil
}