Skip to content

Commit

Permalink
chore: deprecate widgets
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Sep 3, 2023
1 parent 3a1744f commit da526dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package command

import (
"fmt"
"math"
"os"
"path/filepath"
"strconv"
Expand Down Expand Up @@ -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")

Expand Down Expand Up @@ -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 ///////////////////////////////////////////////////
Expand Down
1 change: 1 addition & 0 deletions internal/database/database.go
Original file line number Diff line number Diff line change
Expand Up @@ -367,6 +367,7 @@ func (lp *LaunchPad) GetMaxAppID() int {
}

// GetMaxWidgetID returns the maximum Widget ItemID
// deprecated
func (lp *LaunchPad) GetMaxWidgetID() int {
var widgets []Widget

Expand Down

0 comments on commit da526dc

Please sign in to comment.