diff --git a/internal/command/command.go b/internal/command/command.go index 29d80f2..03b5924 100644 --- a/internal/command/command.go +++ b/internal/command/command.go @@ -3,7 +3,6 @@ package command import ( "fmt" - "math" "os" "path/filepath" "strconv" @@ -234,8 +233,8 @@ func DefaultOrg(c *Config) (err error) { } // We will begin our group records using the max ids found (groups always appear after apps and widgets) - groupID := int(float64(lpad.GetMaxAppID())) // groupID := int(math.Max(float64(lpad.GetMaxAppID()), float64(lpad.GetMaxWidgetID()))) + groupID := int(float64(lpad.GetMaxAppID())) // widgets are no longer supported utils.Indent(log.Info)("creating folders out of app categories") @@ -493,7 +492,8 @@ func LoadConfig(c *Config) error { } // We will begin our group records using the max ids found (groups always appear after apps and widgets) - groupID := int(math.Max(float64(lpad.GetMaxAppID()), float64(lpad.GetMaxWidgetID()))) + // groupID := int(math.Max(float64(lpad.GetMaxAppID()), float64(lpad.GetMaxWidgetID()))) + groupID := int(float64(lpad.GetMaxAppID())) // widgets are no longer supported //////////////////////////////////////////////////////////////////// // Place Widgets /////////////////////////////////////////////////// diff --git a/internal/database/database.go b/internal/database/database.go index ae47015..a93781d 100644 --- a/internal/database/database.go +++ b/internal/database/database.go @@ -367,6 +367,7 @@ func (lp *LaunchPad) GetMaxAppID() int { } // GetMaxWidgetID returns the maximum Widget ItemID +// deprecated func (lp *LaunchPad) GetMaxWidgetID() int { var widgets []Widget