diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-08-01 12:20:05 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-08-18 10:24:52 +0200 |
commit | f98b57aa5e148246312af0ec99dc5dcf09c0843e (patch) | |
tree | b0b0c1db88aac51eea2ae1a1cb0bfc95e0dae907 /pkg/gui/controllers/helpers/window_arrangement_helper.go | |
parent | f114321322c05281fb0ed93700a7beeae253b30a (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.go | 2 |
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(), |