diff options
| author | aura <nw@moneybot.cc> | 2026-07-28 19:11:34 +0200 |
|---|---|---|
| committer | aura <nw@moneybot.cc> | 2026-07-28 19:11:34 +0200 |
| commit | 86d248ed2b033fe36ce53b0387b2cbdcb69c0b72 (patch) | |
| tree | a70f32a0f44b927a6d137998efa405e330689c0f /src/gui/checkbox.cpp | |
| parent | 468813b133a6a3ff0b85d3b34f1009cfeae815e4 (diff) | |
finish undo/redo
Diffstat (limited to 'src/gui/checkbox.cpp')
| -rw-r--r-- | src/gui/checkbox.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/checkbox.cpp b/src/gui/checkbox.cpp index 02cadc6..97ce804 100644 --- a/src/gui/checkbox.cpp +++ b/src/gui/checkbox.cpp @@ -40,9 +40,9 @@ void gui_checkbox_input_fn( void* ptr ) { U8 was_held = check->held; check->held = 0; if( inbounds && was_held ) { + if( check->pre_cb ) check->pre_cb( check ); *check->pval = !*check->pval; - if( check->cb ) - check->cb( check ); + if( check->cb ) check->cb( check ); } return; |
