diff options
| author | Jeff Carr <[email protected]> | 2025-03-03 23:50:11 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-03 23:50:11 -0600 |
| commit | 6127fa1cbb8a68f0b125f50b760822828c7f20e5 (patch) | |
| tree | 0d636d5b50a84a8969bc4e854a6532680c701726 /init.go | |
| parent | 54bbe72aa8fe60c21e3bca46a5455a2965859c5b (diff) | |
try out sync.Once
Diffstat (limited to 'init.go')
| -rw-r--r-- | init.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -73,9 +73,9 @@ func toolkitInit() { me.BG.tk = makeNewInternalWidget(me.BG.wId) } - // SETUP libnotify - makeNotifyClock(me.notify.clock.wId) - makeNotifyMenu(me.notify.menu.wId) + // SETUP libnotify clock and menu + me.notify.clock.once.Do(makeNotifyClock) + me.notify.menu.once.Do(makeNotifyMenu) // PUT INIT DEBUG COOE HERE var toggle bool |
