Merge pull request #634 from Entrox-Licher/main
Minor patch for Campaign Exporter
This commit is contained in:
commit
7c5017cf1b
@ -37,5 +37,5 @@ function onLoad()
|
|||||||
end
|
end
|
||||||
|
|
||||||
function buttonClick_download(_, playerColor)
|
function buttonClick_download(_, playerColor)
|
||||||
Global.call('placeholder_download', { url = self.getGMNotes(), player = Player[playerColor], replace = self.guid })
|
Global.call('placeholder_download', { url = self.getGMNotes(), player = playerColor and Player[playerColor] or nil, replace = self.guid })
|
||||||
end
|
end
|
||||||
|
@ -784,7 +784,9 @@ function placeholder_download(params)
|
|||||||
UI.setAttribute('download_progress', 'active', false)
|
UI.setAttribute('download_progress', 'active', false)
|
||||||
|
|
||||||
-- hide download window
|
-- hide download window
|
||||||
|
if params.player then
|
||||||
changeWindowVisibilityForColor(params.player.color, "downloadWindow", false)
|
changeWindowVisibilityForColor(params.player.color, "downloadWindow", false)
|
||||||
|
end
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user