mod: ui
This commit is contained in:
@@ -19,6 +19,8 @@ type WindowState struct {
|
||||
Maximised bool `mapstructure:"maximised"`
|
||||
}
|
||||
|
||||
const Version = "0.0.1"
|
||||
|
||||
type Config struct {
|
||||
v *viper.Viper
|
||||
mu sync.RWMutex
|
||||
@@ -176,3 +178,7 @@ func (c *Config) GetSaveHistory() bool {
|
||||
defer c.mu.RUnlock()
|
||||
return c.SaveHistory
|
||||
}
|
||||
|
||||
func (c *Config) GetVersion() string {
|
||||
return Version
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user