Skip to content

Commit 21b0d24

Browse files
committed
Add iniDisable to SimpleRunnerParams
1 parent bc02070 commit 21b0d24

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

src/hello_imgui/impl/runner_params.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ namespace HelloImGui
2121
r.fpsIdling.fpsIdle = self.fpsIdle;
2222
r.fpsIdling.enableIdling = self.enableIdling;
2323

24+
r.iniDisable = self.iniDisable;
25+
2426
return r;
2527
}
2628

src/hello_imgui/runner_params.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -444,6 +444,10 @@ struct SimpleRunnerParams
444444
// Useful especially when running from notebooks to keep the app visible above the browser.
445445
bool topMost = false;
446446

447+
// `iniDisable`: _bool, default=false_.
448+
// If true, do not save or load any settings to or from an ini file.
449+
bool iniDisable = false;
450+
447451
RunnerParams ToRunnerParams() const;
448452
};
449453
// @@md

0 commit comments

Comments
 (0)