Skip to content

Commit

Permalink
Update command.go
Browse files Browse the repository at this point in the history
  • Loading branch information
blacktop committed Sep 15, 2023
1 parent 5159077 commit 508c624
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions internal/command/command.go
Original file line number Diff line number Diff line change
Expand Up @@ -574,13 +574,13 @@ func LoadConfig(c *Config) (err error) {
utils.Indent(log.WithField("app", app).Info, 3)("adding to dock")
dPlist.AddApp(app)
}
// if len(dPlist.PersistentOthers) > 0 {
// dPlist.PersistentOthers = nil // remove all folders from dock
// }
// for _, other := range lpad.Config.Dock.Others {
// utils.Indent(log.WithField("other", other).Info, 3)("adding to dock")
// dPlist.AddOther(other)
// }
if len(dPlist.PersistentOthers) > 0 {
dPlist.PersistentOthers = nil // remove all folders from dock
}
for _, other := range lpad.Config.Dock.Others {
utils.Indent(log.WithField("other", other).Info, 3)("adding to dock")
dPlist.AddOther(other)
}
if lpad.Config.Dock.Settings != nil {
if err := dPlist.ApplySettings(*lpad.Config.Dock.Settings); err != nil {
return fmt.Errorf("failed to apply dock settings: %w", err)
Expand Down

0 comments on commit 508c624

Please sign in to comment.