ui fixes
This commit is contained in:
@@ -171,7 +171,12 @@ func (m *Controller) DoCreatePlaylistWorkflow() {
|
|||||||
fyne.Do(func() { m.ToastProvider.ShowErrorToast(lang.L("Error creating playlist")) })
|
fyne.Do(func() { m.ToastProvider.ShowErrorToast(lang.L("Error creating playlist")) })
|
||||||
log.Printf("error creating playlist: %s", err.Error())
|
log.Printf("error creating playlist: %s", err.Error())
|
||||||
} else {
|
} 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"))
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -64,7 +64,14 @@ func newEditPlaylistDialog(playlist *mediaprovider.Playlist, showPublicCheck boo
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
title := widget.NewLabel(lang.L("Edit Playlist"))
|
var titleStr string
|
||||||
|
if playlist == nil {
|
||||||
|
titleStr = lang.L("New Playlist")
|
||||||
|
} else {
|
||||||
|
titleStr = lang.L("Edit Playlist")
|
||||||
|
}
|
||||||
|
|
||||||
|
title := widget.NewLabel(titleStr)
|
||||||
title.Alignment = fyne.TextAlignCenter
|
title.Alignment = fyne.TextAlignCenter
|
||||||
title.TextStyle.Bold = true
|
title.TextStyle.Bold = true
|
||||||
e.container = container.NewVBox(
|
e.container = container.NewVBox(
|
||||||
|
|||||||
Reference in New Issue
Block a user