This allows us to switch back to a standard modal dialog (instead of quasi-modal, which has problems with Ctrl-V in a search box inside a standard file dialog -- such as when picking a path). Fixes https://gitlab.com/kicad/code/kicad/issues/9473
On GTK, the grid shoudl not be marked dirty unless the size of the grid actually changes. Doing so prevents focus loss on the edit field