File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -947,16 +947,13 @@ class wish_item_callback: public uilist_callback
947
947
// Otherwise, edit the existing list of user-defined instance flags
948
948
edit_flags = flags;
949
949
}
950
- string_input_popup popup;
951
- popup
952
- .title ( _ ( " Flags:" ) )
953
- .description ( _ ( " UPPERCASE, no quotes, separate with spaces" ) )
954
- .max_length ( 100 )
955
- .text ( edit_flags )
956
- .query ();
950
+ string_input_popup_imgui popup ( 34 , edit_flags, _ ( " Flags:" ) );
951
+ popup.set_description ( _ ( " UPPERCASE, no quotes, separate with spaces" ) );
952
+ popup.set_max_input_length ( 100 );
953
+ const std::string &rval = popup.query ();
957
954
// Save instance flags on this item (will be reset when selecting another item)
958
- if ( popup.confirmed () ) {
959
- flags = popup. text () ;
955
+ if ( ! popup.cancelled () ) {
956
+ flags = rval ;
960
957
return true ;
961
958
}
962
959
}
You can’t perform that action at this time.
0 commit comments