about summary refs log tree commit diff stats
path: root/commands
diff options
context:
space:
mode:
authorJeffas <dev@jeffas.io>2020-05-31 12:37:46 +0100
committerReto Brunner <reto@labrat.space>2020-06-09 08:48:47 +0200
commit543510f5c146aa6e4d3344ec7d109ad7945fa106 (patch)
tree7356a64e28c2ab9123e84a76381e2cd99e82849a /commands
parent3877b1aa719569d3666bce227e351afcbc2628af (diff)
downloadaerc-543510f5c146aa6e4d3344ec7d109ad7945fa106.tar.gz
Make grid sizes dynamic
The grid used static sizes which meant that changing settings didn't
have an effect on elements of the ui, notably the sidebar width. This
patch makes the `Size` parameter of a cell a function which returns the
`int`, allowing for dynamic sizes.

A `Const` function is also included for ease of use for static sizes.
Diffstat (limited to 'commands')
-rw-r--r--commands/set.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/commands/set.go b/commands/set.go
index 1d20f06..cc6333e 100644
--- a/commands/set.go
+++ b/commands/set.go
@@ -61,6 +61,9 @@ func SetCore(aerc *widgets.Aerc, args []string) error {
 		return err
 	}
 
+	// ensure any ui changes take effect
+	aerc.Invalidate()
+
 	return nil
 }