Skip to content

Commit

Permalink
moved cocode to cogentcode; improved window names
Browse files Browse the repository at this point in the history
  • Loading branch information
kkoreilly committed Jan 26, 2024
1 parent 6d2eda5 commit a0cd5e8
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion code/cmd/cocode/code.go → code/cmd/cogentcode/code.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
func main() {
gi.TheApp.SetName("CogentCode")
pdir := gi.TheApp.AppDataDir()
lfnm := filepath.Join(pdir, "cocode.log")
lfnm := filepath.Join(pdir, "cogentcode.log")

code.TheConsole.Init(lfnm)

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions code/codev/codeview.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ func (ge *CodeView) SetWindowNameTitle() {
return
}
pnm := ge.Name()
winm := "cocode-" + pnm
winm := "Cogent Code: " + pnm
win.SetName(winm)
win.SetTitle(winm + ": " + string(ge.Settings.ProjRoot))
tab := ge.Scene.GetTopAppBar()
Expand Down Expand Up @@ -512,7 +512,7 @@ func (ge *CodeView) CloseWindowReq() bool {
// functions!
func QuitReq() bool {
for _, win := range gi.MainRenderWins {
if !strings.HasPrefix(win.Name, "cocode-") {
if !strings.HasPrefix(win.Name, "Cogent Code:") {
continue
}
msc := win.MainScene()
Expand Down Expand Up @@ -556,7 +556,7 @@ func CodeInScene(sc *gi.Scene) *CodeView {

// NewCodeWindow is common code for Open CodeWindow from Proj or Path
func NewCodeWindow(path, projnm, root string, doPath bool) *CodeView {
winm := "cocode-" + projnm
winm := "Cogent Code: " + projnm
wintitle := winm + ": " + path

if win, found := gi.AllRenderWins.FindName(winm); found {
Expand Down

0 comments on commit a0cd5e8

Please sign in to comment.