explicit info in GUI for playlist
This commit is contained in:
@@ -811,6 +811,33 @@ func main() {
|
||||
} else {
|
||||
cimgui.Text("End behavior: stop")
|
||||
}
|
||||
cimgui.Text(fmt.Sprintf(
|
||||
"Failure behavior: %s",
|
||||
configuredPlaylist.OnFailure,
|
||||
))
|
||||
|
||||
if hasPlaylistSnapshot && playlistSnapshot.HasFailure {
|
||||
failure := playlistSnapshot.Failure
|
||||
name := failure.EntryName
|
||||
if name == "" {
|
||||
name = fmt.Sprintf("Entry %d", failure.EntryIndex+1)
|
||||
}
|
||||
cimgui.SeparatorText("Last failure")
|
||||
cimgui.TextWrapped(fmt.Sprintf(
|
||||
"%s: %s failed",
|
||||
name,
|
||||
failure.Status.Unit,
|
||||
))
|
||||
cimgui.Text(fmt.Sprintf(
|
||||
"Attempts: %d | failed attempts: %d",
|
||||
failure.Status.Attempt,
|
||||
failure.Status.FailedAttempts,
|
||||
))
|
||||
cimgui.Text(fmt.Sprintf("Policy: %s", failure.Policy))
|
||||
if failure.Status.Err != nil {
|
||||
cimgui.TextWrapped(failure.Status.Err.Error())
|
||||
}
|
||||
}
|
||||
|
||||
preview := "No entry selected"
|
||||
if hasPlaylistSnapshot && playlistSnapshot.State.HasSelection {
|
||||
|
||||
Reference in New Issue
Block a user