From 7f0f36a886bab5bc0f4d756cabc01ad523b12510 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Mon, 5 Feb 2024 15:06:02 -0600 Subject: fixed basic entry display Signed-off-by: Jeff Carr --- releaseWindow.go | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'releaseWindow.go') diff --git a/releaseWindow.go b/releaseWindow.go index 2372fc4..f18aa51 100644 --- a/releaseWindow.go +++ b/releaseWindow.go @@ -30,7 +30,7 @@ type releaseStruct struct { releaseVersionB *gui.Node unreleaseB *gui.Node reason *gadgets.BasicEntry - reasonS string + // reasonS string openrepo *gui.Node @@ -60,8 +60,6 @@ func (w *autoType) Enable() { } func createReleaseBox(box *gui.Node) { - release.reasonS = "gocui dropdown select" - initWhitelist() release.box = box @@ -136,7 +134,7 @@ func createReleaseBox(box *gui.Node) { return } - log.Info("\ttag and push", curName, release.version.String(), release.reasonS) + log.Info("\ttag and push", curName, release.version.String(), me.releaseReasonS) var all [][]string all = append(all, []string{"git", "add", "-f", "go.mod"}) @@ -145,9 +143,9 @@ func createReleaseBox(box *gui.Node) { } else { all = append(all, []string{"git", "add", "-f", "go.sum"}) } - all = append(all, []string{"git", "commit", "-m", release.reasonS}) + all = append(all, []string{"git", "commit", "-m", me.releaseReasonS}) all = append(all, []string{"git", "push"}) - all = append(all, []string{"git", "tag", "-m", release.reasonS, release.version.String()}) + all = append(all, []string{"git", "tag", "-m", me.releaseReasonS, release.version.String()}) all = append(all, []string{"git", "push", "origin", release.version.String()}) if doAll(release.current, all) { @@ -242,7 +240,7 @@ func createReleaseBox(box *gui.Node) { release.version = gadgets.NewOneLiner(release.grid, "version") release.reason = gadgets.NewBasicEntry(release.grid, "release reason") - release.reason.SetText(release.reasonS) + release.reason.SetText(me.releaseReasonS) me.autoWorkingPwd = gadgets.NewOneLiner(release.grid, "working directory (pwd)") me.userHomePwd = gadgets.NewOneLiner(release.grid, "user home") -- cgit v1.2.3