Skip to content

Commit

Permalink
Fix handling of several portal files being added one after the other
Browse files Browse the repository at this point in the history
Some parts of UI were only considering the last added portal file.
This was causing e.g. colors or labels of the previously added portals
to not be updated.
  • Loading branch information
pwiecz committed Jul 7, 2022
1 parent 4473831 commit d3ee7c0
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion gui/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ func (w *MainWindow) addPortals(portals []lib.Portal) {
return
}
w.portals.portals = append(w.portals.portals, newPortals...)
w.portals.portalMap = make(map[string]lib.Portal)
for _, portal := range newPortals {
w.portals.portalMap[portal.Guid] = portal
}
Expand Down

0 comments on commit d3ee7c0

Please sign in to comment.