Skip to content

Commit

Permalink
feat: refactor main window structure and enhance object handling func…
Browse files Browse the repository at this point in the history
…tionality
  • Loading branch information
pteich committed Feb 19, 2025
1 parent 1a02938 commit 76e34a3
Show file tree
Hide file tree
Showing 2 changed files with 246 additions and 190 deletions.
6 changes: 4 additions & 2 deletions windows/configwindow.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,16 @@ func ShowConfigWindow(ctx context.Context, cfg config.S3Config, a fyne.App) {
cfg.Prefix = prefixEntry.Text
cfg.Region = regionEntry.Text

configWin.Hide()

s3svc, err := s3.New(cfg)
if err != nil {
dialog.ShowError(err, configWin)
return
}

configWin.Hide()
ShowMainWindow(ctx, a, s3svc)
mainWin := NewMainWindow(a, s3svc)
mainWin.Show(ctx)
},
OnCancel: func() {
a.Quit()
Expand Down
Loading

0 comments on commit 76e34a3

Please sign in to comment.