Skip to content

Commit

Permalink
Add more feedback for background clustering
Browse files Browse the repository at this point in the history
  • Loading branch information
Nevcairiel committed Dec 22, 2022
1 parent bd3e8c6 commit 4614e07
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
1 change: 1 addition & 0 deletions Locales/Locale-enUS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@ L["Cluster (in Background)"] = true
L["Cluster this route"] = true
L["Cluster this route in the background"] = true
L["Background Route Clustering completed."] = true
L["Now running route clustering in the background..."] = true
L["Uncluster"] = true
L["Uncluster this route"] = true

Expand Down
10 changes: 9 additions & 1 deletion Routes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1733,12 +1733,20 @@ function ConfigHandler:ClusterRouteBackground(info)
t.route, t.metadata, t.length = route, metadata, length

t.cluster_dist = db.defaults.cluster_dist
Routes:Print(L["Background Route Clustering completed."])

-- redraw lines
local AutoShow = Routes:GetModule("AutoShow", true)
if AutoShow and db.defaults.use_auto_showhide then
AutoShow:ApplyVisibility()
end
Routes:DrawWorldmapLines()
Routes:DrawMinimapLines(true)

Routes:Print(L["Background Route Clustering completed."])
LibStub("AceConfigRegistry-3.0"):NotifyChange("Routes")
end

Routes:Print(L["Now running route clustering in the background..."])
Routes.TSP:ClusterRouteBackground(db.routes[zone][route].route, zone, db.defaults.cluster_dist, callbackClusterFinished)
end

Expand Down

0 comments on commit 4614e07

Please sign in to comment.