Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: DFHack/scripts
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a37ebe170c05e889429dc9dde7138b23184fc472
Choose a base ref
..
head repository: DFHack/scripts
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 5742e4e4d3209a174061d6b4aea653887efe2a99
Choose a head ref
Showing with 2 additions and 1 deletion.
  1. +2 −1 gui/notes.lua
3 changes: 2 additions & 1 deletion gui/notes.lua
Original file line number Diff line number Diff line change
@@ -350,7 +350,8 @@ function NotesScreen:onRenderFrame(dc, rect)
end

function NotesScreen:onAboutToShow()
if not overlay.get_state().config[OVERLAY_NAME].enabled then
local notes_overlay = overlay.get_state().config[OVERLAY_NAME]
if notes_overlay and not notes_overlay.enabled then
self.should_disable_overlay = true
overlay.overlay_command({'enable', 'notes.map_notes'})
end