SetDirty() dialog window to save

Hi,
I want to know if it’s possible to call the SetDirty() function and call a SaveAsset() function without having a Save dialog window ?
This block me cause I want automatically save all the assets modify without asking that to the user.

I got my answer on IRC :

My settings in Unity/Edit/Prefrences got Verify Saving Asset activated :confused:

and the link : Unity - Manual: Preferences

AssetDatabase.Refresh Might be what your looking for? Might need more info if not.