Skip to content
This repository has been archived by the owner on Feb 18, 2023. It is now read-only.

Commit

Permalink
Add last version to about version
Browse files Browse the repository at this point in the history
  • Loading branch information
NGnius committed Sep 9, 2019
1 parent 128d484 commit b64f0c2
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rxsm/settings-dialog.go
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,11 @@ func (sd *SettingsDialog) __init_display() {
sd.descriptionLabel = widgets.NewQLabel2("RobocraftX Save Manager, a <a href='https://github.com/NGnius/rxsm/blob/develop/LICENSE'>FOSS project</a> by NGnius to bring RCX players out of the Jurassic period. <br/><h3>RAWR!</h3>", nil, 0)
sd.descriptionLabel.SetWordWrap(true)
sd.descriptionLabel.SetAlignment(0x0004)
sd.rxsmVersionLabel = widgets.NewQLabel2("<b>Version</b> "+GlobalConfig.Version+" ("+runtime.Compiler+")", nil, 0)
versionStr := GlobalConfig.Version+" ("+runtime.Compiler+")"
if GlobalConfig.LastVersion() != GlobalConfig.Version && GlobalConfig.LastVersion() != "" {
versionStr = GlobalConfig.LastVersion()+" -> "+versionStr
}
sd.rxsmVersionLabel = widgets.NewQLabel2("<b>Version</b> "+versionStr, nil, 0)
sd.rxsmVersionLabel.SetAlignment(0x0004)
sd.rxsmVersionLabel.SetSizePolicy2(1,4)
sd.machineLabel = widgets.NewQLabel2("<b>Machine</b> "+runtime.GOOS+"-"+runtime.GOARCH+" x"+strconv.Itoa(runtime.NumCPU())+" (go: "+strconv.Itoa(runtime.NumGoroutine())+")", nil, 0)
Expand Down

0 comments on commit b64f0c2

Please sign in to comment.