savedocumentas

guerilla.savedocumentas(file, warn, dontaddtorecent)

Save the current document

Parameters:
  • file (str) – The gproject file to save (or nil to open a file dialog)
  • warn (bool) – If true, warn the user when overwriting an existing project file
  • dontaddtorecent (bool) – If true, the file won’t be added to the recent files
Returns:

true if the file was save (false when an error occured or the user canceled)

Return type:

bool