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:
parent
4ab5fd3371
commit
d1fbdac4bc
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user