Fixed #32, version update now working correctly

pull/34/head
マリウス 2 years ago
parent 30024d48c2
commit 0723ec3379
No known key found for this signature in database
GPG Key ID: 272ED814BF63261F

@ -8,6 +8,7 @@ import (
"net/url"
"os"
"runtime"
"strings"
"time"
"log"
@ -72,7 +73,7 @@ func main() {
var articlesRoots []*models.Article
TUI := tui.Init(&EMBEDFS, cfg, cch, logger)
TUI.SetVersion(version, getLatestVersion())
TUI.SetVersion(strings.TrimLeft(version, "v"), strings.TrimLeft(getLatestVersion(), "v") )
TUI.ArticlesDatasource = &articles
TUI.ArticlesRoots = &articlesRoots

Loading…
Cancel
Save