savedocument

guerilla.savedocument(file, warn, dontaddtorecent)

Save the current document

Parameters:
  • file (str) – The gproject file to save (or nil to save over the current project file)
  • 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