Skip to content

Commit

Permalink
Remove changed var (#178)
Browse files Browse the repository at this point in the history
  • Loading branch information
wizzomafizzo authored Jan 12, 2025
1 parent 3bf4cd6 commit f68d6d8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cmd/mister/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ func BuildAppAndRetry(
appTty = nil
appTty2 := builder(pl, service)
tty, err := tcell.NewDevTtyFromDev("/dev/tty2")

if err == nil {
screen, err := tcell.NewTerminfoScreenFromTty(tty)
if err == nil {
Expand All @@ -58,6 +59,7 @@ func BuildAppAndRetry(
} else {
panic(err)
}

if err := appTty2.Run(); err != nil {
panic(err)
}
Expand Down Expand Up @@ -104,16 +106,14 @@ func tryAddStartup(pl platforms.Platform, service *utils.Service) {
log.Error().Msgf("failed to load startup file: %s", err)
}

changed := false

// migration from tapto name
if startup.Exists("mrext/tapto") {
err = startup.Remove("mrext/tapto")
if err != nil {
panic(err)
}
changed = true
}

if !startup.Exists("mrext/" + config.AppName) {
BuildAppAndRetry(buildTheInstallRequestApp, pl, service)
}
Expand Down Expand Up @@ -234,8 +234,8 @@ func buildTheUi(pl platforms.Platform, service *utils.Service) *tview.Applicatio
pages.RemovePage("export")
}).
ShowSecondaryText(false)
// Coloring will require some effort
// SetBackgroundColor(modal.GetBackgroundColor())
// Coloring will require some effort
// SetBackgroundColor(modal.GetBackgroundColor())
logExport.
SetBorder(true).
SetBorderPadding(1, 1, 1, 1).
Expand Down

0 comments on commit f68d6d8

Please sign in to comment.