Fix regression of UI redraw trigger

We can't use exec because it blocks the main window.
Must use show on the preference window.