We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 622fb2d commit da68893Copy full SHA for da68893
1 file changed
test/overlay/notes.lua
@@ -13,13 +13,17 @@ config = {
13
}
14
15
local map_points_backup = nil
16
+local was_overlay_enabled = overlay.isEnabled()
17
18
local function install_notes_overlay(options)
19
options = options or {}
20
21
map_points_backup = utils.clone(map_points)
22
map_points:resize(0)
23
24
+ local was_overlay_enabled = overlay.isEnabled()
25
+
26
+ overlay.setEnabled(true)
27
overlay.rescan()
28
overlay.overlay_command({'enable', 'notes.map_notes'})
29
@@ -48,6 +52,8 @@ local function cleanup(notes_overlay)
48
52
map_points_backup = nil
49
53
50
54
reload_notes()
55
56
+ overlay.setEnabled(was_overlay_enabled)
51
57
end
58
59
local function add_note(notes_overlay, pos, name, comment)
0 commit comments