summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/helpers/window_arrangement_helper.go
diff options
context:
space:
mode:
authorStefan Haller <stefan@haller-berlin.de>2024-08-01 12:20:05 +0200
committerStefan Haller <stefan@haller-berlin.de>2024-08-18 10:24:52 +0200
commitf98b57aa5e148246312af0ec99dc5dcf09c0843e (patch)
treeb0b0c1db88aac51eea2ae1a1cb0bfc95e0dae907 /pkg/gui/controllers/helpers/window_arrangement_helper.go
parentf114321322c05281fb0ed93700a7beeae253b30a (diff)
Change direct access to Common.UserConfig to a getter
This will allow us to turn the field into an atomic.Value for safe concurrent access.
Diffstat (limited to 'pkg/gui/controllers/helpers/window_arrangement_helper.go')
-rw-r--r--pkg/gui/controllers/helpers/window_arrangement_helper.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/gui/controllers/helpers/window_arrangement_helper.go b/pkg/gui/controllers/helpers/window_arrangement_helper.go
index d27e9aa82..d4ac4ee60 100644
--- a/pkg/gui/controllers/helpers/window_arrangement_helper.go
+++ b/pkg/gui/controllers/helpers/window_arrangement_helper.go
@@ -87,7 +87,7 @@ func (self *WindowArrangementHelper) GetWindowDimensions(informationStr string,
args := WindowArrangementArgs{
Width: width,
Height: height,
- UserConfig: self.c.UserConfig,
+ UserConfig: self.c.UserConfig(),
CurrentWindow: self.windowHelper.CurrentWindow(),
CurrentSideWindow: self.c.Context().CurrentSide().GetWindowName(),
CurrentStaticWindow: self.c.Context().CurrentStatic().GetWindowName(),