diff --git a/eventChannel.go b/eventChannel.go index 41fa512..60fee06 100644 --- a/eventChannel.go +++ b/eventChannel.go @@ -110,8 +110,10 @@ func ReadReceivedData(data *pb.Event, mh *gui.TableData, window *ui.Window, tab mh.Rows[row].HumanData[0].Color = color.RGBA{255, 255, 255, 0} // makes the background of each other row grey } else if (row == 5) { mh.Rows[row].HumanData[0].Color = color.RGBA{55, 55, 55, 255} // makes the background of each other row grey - } else { + } else if (row < 10) { mh.Rows[row].HumanData[0].Color = linuxBgMauve + } else { + mh.Rows[row].HumanData[0].Color = color.RGBA{250, 250, 250, 250} } mh.Rows[row].HumanData[1].Text = item.Name mh.Rows[row].HumanData[1].Color = defaultTextColor diff --git a/main.go b/main.go index af23f36..d829513 100644 --- a/main.go +++ b/main.go @@ -374,31 +374,16 @@ func mainMouseClick(b *gui.ButtonMap) { } } } - - /* - if (gui.Data.State == "splash") { - gui.Data.State = "account1" - return - } else if (gui.Data.State == "account1") { - // gui.ShowAccountTab(-1, b.B) - gui.ShowAccountTab(-1) - gui.Data.State = "main" - } else if (gui.Data.State == "main") { - gui.ShowMainTab() - gui.Data.State = "done" - } else if (gui.Data.State == "QUIT") { - onExit(nil) - } - */ } +// +// This is GO language concept for 'recover' to keep an app from completely crashing // // Doing this can sometimes avoid a panic() on things like: // panic: runtime error: slice bounds out of range // // In debugging mode, always panic() and never try to recover() // - func r() { if (gui.Data.Debug == false) { if r := recover(); r != nil {