File tree Expand file tree Collapse file tree 3 files changed +8
-8
lines changed
Expand file tree Collapse file tree 3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11# Package
22
3- version = " 0.2.3 "
3+ version = " 0.2.5 "
44author = " Patitotective"
55description = " ImThemes is a Dear ImGui theme designer and browser written in Nim"
66license = " MIT"
Original file line number Diff line number Diff line change 11# App
22name = " ImThemes"
33comment = " ImThemes is a Dear ImGui theme designer and browser written in Nim"
4- version = " 0.2.3 "
4+ version = " 0.2.5 "
55website = " https://github.com/Patitotective/ImThemes"
66authors = [" Patitotective <https://github.com/Patitotective>" ]
77categories = [" Utility" ]
Original file line number Diff line number Diff line change @@ -203,14 +203,14 @@ proc drawMain(app: var App) = # Draw the main window
203203 igEnd ()
204204
205205 # GLFW clipboard -> ImGui clipboard
206- if not app.win.getClipboardString ().isNil and $ app.win. getClipboardString () != app.lastClipboard:
207- igsetClipboardText (app.win. getClipboardString () )
208- app.lastClipboard = $ app.win. getClipboardString ()
206+ if ( let clip = app.win.getClipboardString (); not clip .isNil and $ clip != app.lastClipboard) :
207+ igSetClipboardText (clip )
208+ app.lastClipboard = $ clip
209209
210210 # ImGui clipboard -> GLFW clipboard
211- if not igGetClipboardText ().isNil and $ igGetClipboardText () != app.lastClipboard:
212- app.win.setClipboardString (igGetClipboardText () )
213- app.lastClipboard = $ igGetClipboardText ()
211+ if ( let clip = igGetClipboardText (); not clip .isNil and $ clip != app.lastClipboard) :
212+ app.win.setClipboardString (clip )
213+ app.lastClipboard = $ clip
214214
215215proc render (app: var App ) = # Called in the main loop
216216 # Poll and handle events (inputs, window resize, etc.)
You can’t perform that action at this time.
0 commit comments