migrate global to storage

This commit is contained in:
Zoryn
2024-10-22 10:51:51 -04:00
parent 9be06a4487
commit 609db0ebda
15 changed files with 164 additions and 164 deletions

View File

@@ -72,7 +72,7 @@ function alerts_tab.update(self)
local search_surface = state.surface
local ltn_alerts = state.ltn_data.alerts
local alerts_to_delete = global.active_data.alerts_to_delete
local alerts_to_delete = storage.active_data.alerts_to_delete
local scroll_pane = refs.scroll_pane
local children = scroll_pane.children
@@ -95,7 +95,7 @@ function alerts_tab.update(self)
step = 1
end
if not global.flags.deleted_all_alerts then
if not storage.flags.deleted_all_alerts then
for sorted_index = start, finish, step do
local alert_id = sorted_alerts[sorted_index]
local alerts_entry = ltn_alerts[alert_id]