added re-grabbing of notes onClick

This commit is contained in:
Chr1Z93 2022-12-19 22:06:27 +01:00
parent 2e4349bd49
commit 6c4973a274

View File

@ -1,8 +1,8 @@
function onLoad()
notes = self.getGMNotes()
local notes = self.getGMNotes()
-- default parameters (e.g. scenarios)
buttonParameters = {
local buttonParameters = {
label = "Download",
click_function = "buttonClick_download",
function_owner = self,
@ -37,5 +37,5 @@ function onLoad()
end
function buttonClick_download()
Global.call('placeholder_download', { url = notes, replace = self.guid })
Global.call('placeholder_download', { url = self.getGMNotes(), replace = self.guid })
end