Can the Import Tool dialog box (when closing) be disabled
Show older comments
Is there a way to disable the prompt asking to confirm closing files in the Import Tool?
This is a new feature (probably from 2024). If I have multiple files open in the Import Tools (in different tabs) and I close the Tool (click the X) a dialog box appears for every single file asking to confirm.
I couldn't find any way to disable this, and when I have many files open this becomes very tedious.

4 Comments
dpb
on 8 Feb 2026
Unfortunately, there doesn't seem to be a confirmation dialog setting for this prompt, no, and the uiimport function doesn't have any additional arguments to let you set its behavior [the tool simply executes uiimport('-file') ] that would let you customize its behavior as desired.
Submit this to Mathworks as an official support request/enhancement at <Product Support Page>; agreed, that would be very annoying in that mode of use.
John D'Errico
on 8 Feb 2026
Yes, this would be a great enhancement idea, something they will be supportive of when they get your request. Of course the author cannot think of everything, so your feedback is terribly useful.
dpb
on 9 Feb 2026
Actually, since the tool function is
uiimport('-file')
and the uiimport itself doesn't have the dialog, it's the tab close dialog it would appear...
Guy
on 9 Feb 2026
Accepted Answer
More Answers (0)
Categories
Find more on Scripts in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!