From c21168a74181903535c63f49c5a6d3bd2052c883 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Wed, 16 Oct 2024 14:38:57 +0900 Subject: system: move enablements from state package This removes the unnecessary import of the state package. Signed-off-by: Ophestra Umiker --- internal/state/print.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'internal/state/print.go') diff --git a/internal/state/print.go b/internal/state/print.go index 8de5a59d..fbd0110d 100644 --- a/internal/state/print.go +++ b/internal/state/print.go @@ -10,6 +10,7 @@ import ( "text/tabwriter" "time" + "git.ophivana.moe/cat/fortify/internal/system" "git.ophivana.moe/cat/fortify/internal/verbose" ) @@ -85,7 +86,7 @@ func (s *simpleStore) mustPrintLauncherState(w **tabwriter.Writer, now time.Time // build enablements string ets := strings.Builder{} // append enablement strings in order - for i := Enablement(0); i < EnableLength; i++ { + for i := system.Enablement(0); i < system.Enablement(system.ELen); i++ { if state.Capability.Has(i) { ets.WriteString(", " + i.String()) } -- cgit v1.3.1