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
|
||||
|
||||
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
|
||||
|
@ -784,7 +784,9 @@ function placeholder_download(params)
|
||||
UI.setAttribute('download_progress', 'active', false)
|
||||
|
||||
-- hide download window
|
||||
changeWindowVisibilityForColor(params.player.color, "downloadWindow", false)
|
||||
if params.player then
|
||||
changeWindowVisibilityForColor(params.player.color, "downloadWindow", false)
|
||||
end
|
||||
return 1
|
||||
end
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user