[Preferences] Fix Colours Export dialog dialog.setFileName on Mac