mirror of
https://github.com/AynaLivePlayer/AynaLivePlayer.git
synced 2025-12-06 10:22:50 +08:00
add dev version
This commit is contained in:
@@ -2,14 +2,12 @@ package gui
|
||||
|
||||
import (
|
||||
"AynaLivePlayer/core/events"
|
||||
"AynaLivePlayer/core/model"
|
||||
"AynaLivePlayer/global"
|
||||
"AynaLivePlayer/gui/gutil"
|
||||
"AynaLivePlayer/pkg/config"
|
||||
"AynaLivePlayer/pkg/event"
|
||||
"AynaLivePlayer/pkg/i18n"
|
||||
"AynaLivePlayer/resource"
|
||||
"fmt"
|
||||
"fyne.io/fyne/v2"
|
||||
"fyne.io/fyne/v2/app"
|
||||
"fyne.io/fyne/v2/container"
|
||||
@@ -40,7 +38,7 @@ func Initialize() {
|
||||
}
|
||||
App = app.NewWithID(config.ProgramName)
|
||||
//App.Settings().SetTheme(&myTheme{})
|
||||
MainWindow = App.NewWindow(fmt.Sprintf("%s Ver %s", config.ProgramName, model.Version(config.Version)))
|
||||
MainWindow = App.NewWindow(getAppTitle())
|
||||
|
||||
tabs := container.NewAppTabs(
|
||||
container.NewTabItem(i18n.T("gui.tab.player"),
|
||||
|
||||
13
gui/gui_dev.go
Normal file
13
gui/gui_dev.go
Normal file
@@ -0,0 +1,13 @@
|
||||
//go:build !nosource
|
||||
|
||||
package gui
|
||||
|
||||
import (
|
||||
"AynaLivePlayer/core/model"
|
||||
"AynaLivePlayer/pkg/config"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func getAppTitle() string {
|
||||
return fmt.Sprintf("%s Ver %s - 正式版", config.ProgramName, model.Version(config.Version))
|
||||
}
|
||||
13
gui/gui_stable.go
Normal file
13
gui/gui_stable.go
Normal file
@@ -0,0 +1,13 @@
|
||||
//go:build nosource
|
||||
|
||||
package gui
|
||||
|
||||
import (
|
||||
"AynaLivePlayer/core/model"
|
||||
"AynaLivePlayer/pkg/config"
|
||||
"fmt"
|
||||
)
|
||||
|
||||
func getAppTitle() string {
|
||||
return fmt.Sprintf("%s Ver %s - 测试版 仅供开发人员测试使用 请勿用于其他用途", config.ProgramName, model.Version(config.Version))
|
||||
}
|
||||
Reference in New Issue
Block a user