aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/state/register.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/state/register.go')
-rw-r--r--internal/state/register.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/internal/state/register.go b/internal/state/register.go
index 2fff565e..25c22894 100644
--- a/internal/state/register.go
+++ b/internal/state/register.go
@@ -4,6 +4,13 @@ func RegisterRevertPath(p string) {
cleanupCandidate = append(cleanupCandidate, p)
}
+func RegisterEnablement(e Enablements) {
+ if enablements != nil {
+ panic("enablement state set twice")
+ }
+ enablements = &e
+}
+
func XcbActionComplete() {
if xcbActionComplete {
Fatal("xcb inserted twice")