File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,17 @@ proc drawAboutModal(app: App) =
57
57
58
58
igText(cstring app.config.version)
59
59
60
+ if app.prefs.path.len > 0:
61
+ igSameLine()
62
+
63
+ igSetCursorPosX(igGetCurrentWindow().size.x - igCalcFrameSize("Open prefs file").x - igGetStyle().windowPadding.x)
64
+
65
+ if igButton("Open prefs file"):
66
+ openURL(app.prefs.path)
67
+
68
+ if igIsItemHovered():
69
+ igSetTooltip(cstring app.prefs.path & " " & FA_FileTextO)
70
+
60
71
igEndPopup()
61
72
62
73
proc drawMainMenuBar(app: var App) =
Original file line number Diff line number Diff line change 17
17
Config* = object
18
18
name* = " ImExample"
19
19
comment* = " ImExample is a simple Dear ImGui application example"
20
- version* = " 2.0 .0"
20
+ version* = " 2.1 .0"
21
21
website* = " https://github.com/Patitotective/ImTemplate"
22
22
authors* = [
23
23
(name: " Patitotective" , url: " https://github.com/Patitotective" ),
You can’t perform that action at this time.
0 commit comments