remember last window size

This commit is contained in:
Drew Weymouth
2023-01-22 16:24:53 -08:00
parent c9bd3b5079
commit 6a931d62f4
3 changed files with 30 additions and 5 deletions
+13 -2
View File
@@ -15,12 +15,23 @@ type ServerConfig struct {
Default bool
}
type AppConfig struct {
WindowWidth int
WindowHeight int
}
type Config struct {
Servers []*ServerConfig
Application AppConfig
Servers []*ServerConfig
}
func DefaultConfig() *Config {
return &Config{}
return &Config{
Application: AppConfig{
WindowWidth: 1000,
WindowHeight: 800,
},
}
}
func ReadConfigFile(filepath string) (*Config, error) {