public FileChooserDialog(string title, Window parent, FileChooserAction action) :
     base(title, parent, action)
 {
     LocalOnly = Banshee.IO.Provider.LocalOnly;
     SetCurrentFolderUri(LastFileChooserUri.Get(Environment.GetFolderPath(Environment.SpecialFolder.Personal)));
     WindowPosition = WindowPosition.Center;
 }
示例#2
0
        protected override void OnResponse(ResponseType response)
        {
            base.OnResponse(response);

            if (CurrentFolderUri != null)
            {
                LastFileChooserUri.Set(CurrentFolderUri);
            }
        }