We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 849b26a commit 34010edCopy full SHA for 34010ed
1 file changed
manual-save.lua
@@ -180,9 +180,11 @@ local function triggerManualSave()
180
print("Initiating manual save...")
181
print("Saving natively to: " .. final_folder_name)
182
183
- -- Inject the text and trigger the save UI natively
+ -- Open the options menu natively via input to ensure it initializes properly
184
local options = df.global.game.main_interface.options
185
- options.open = true
+ if not options.open then
186
+ gui.simulateInput(dfhack.gui.getCurViewscreen(true), 'OPTIONS')
187
+ end
188
options.entering_manual_folder = true
189
options.entering_manual_str = final_folder_name
190
0 commit comments