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:
2016-10-05 01:03:46 +05:00
parent 0f5dd8f236
commit 8e58104cfa
7 changed files with 161 additions and 26 deletions

View File

@@ -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() {