Fix to prevent opening multiple file choosers when exporting graph