abra-code / OMC

OnMyCommand
http://www.abracode.com/free/cmworkshop/on_my_command.html
MIT License
33 stars 5 forks source link

Add option to omc_dialog_control to not reload table view after removal of the whole content #5

Closed abra-code closed 5 years ago

abra-code commented 5 years ago

Very often a content of the table view needs to be reloaded with different content. Most often it is done with omc_dialog_control and option omc_table_remove_all_rows followed by omc_table_add_rows. The problem is that the first call to remove all rows triggers a table view refresh so the re-population of the table involves quite visible visual flicker. It can be avoided if we add an option not to reload the table or list elements on first omg_dialog_control invocation but only on the second one.

abra-code commented 5 years ago

Fixed with submission: https://github.com/abra-code/OMC/commit/4c4bfe5d49476ed239e57b6007b1f0d024849d55