savedocumentΒΆ

boolean success savedocument ( string file , boolean warn , boolean dontaddtorecent )

Save the current document

Arguments:

  • file The gproject file to save (or nil to save over the current project file)
  • warn If true, warn the user when overwriting an existing project file
  • dontaddtorecent If true, the file won't be added to the recent files

Return:

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