1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2025-03-05 15:05:57 +02:00

Prevent triggered on open and close

This commit is contained in:
plague006 2019-01-25 11:38:58 -05:00
parent 4ab5fd3371
commit d1fbdac4bc

View File

@ -675,12 +675,12 @@ local function download_changelog()
end
local function toggle(event)
upload_changelog(event)
local player = event.player
local center = player.gui.center
local main_frame = center[main_frame_name]
if main_frame then
upload_changelog(event)
Gui.destroy(main_frame)
else
draw_main_frame(center, player)