Skip to content

Commit

Permalink
favourites.lua: fix duplication bug when editing favourites
Browse files Browse the repository at this point in the history
  • Loading branch information
CogentRedTester committed Mar 7, 2025
1 parent c8f35b1 commit 369222a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions addons/favourites.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ local function update_favourites()
local file = io.open(save_path, "r")
if not file then return end

favourites = {}
for str in file:lines() do
table.insert(favourites, create_favourite_object(str))
end
Expand Down

0 comments on commit 369222a

Please sign in to comment.