This commit is contained in:
Drew Weymouth
2025-09-28 15:44:05 -07:00
parent 47603b1610
commit 041818bb93
2 changed files with 14 additions and 2 deletions
+6 -1
View File
@@ -171,7 +171,12 @@ func (m *Controller) DoCreatePlaylistWorkflow() {
fyne.Do(func() { m.ToastProvider.ShowErrorToast(lang.L("Error creating playlist")) })
log.Printf("error creating playlist: %s", err.Error())
} else {
fyne.Do(func() { m.ToastProvider.ShowSuccessToast(lang.L("Successfully created playlist")) })
fyne.Do(func() {
// Right now, this workflow is only initiated by the "New Playlist" button
// on the playlists page. Reload it so the new playlist shows up.
m.ReloadFunc()
m.ToastProvider.ShowSuccessToast(lang.L("Successfully created playlist"))
})
}
}()
}