Configuration and tray icon.
Configuration is now properly saved for parameters in Options window. Also they are restored fine. Added tray icon with two default actions: show/hide and exit. More to come.
This commit is contained in:
@@ -18,6 +18,8 @@ import (
|
||||
)
|
||||
|
||||
type Config struct {
|
||||
// Configuration from database.
|
||||
Cfg map[string]string
|
||||
// Temporary (or runtime) configuration things.
|
||||
TEMP map[string]string
|
||||
}
|
||||
@@ -51,6 +53,7 @@ func (c *Config) initializePathsNix() {
|
||||
|
||||
func (c *Config) initializeStorages() {
|
||||
c.TEMP = make(map[string]string)
|
||||
c.Cfg = make(map[string]string)
|
||||
}
|
||||
|
||||
func (c *Config) Initialize() {
|
||||
|
Reference in New Issue
Block a user