MCPcopy Create free account
hub / github.com/cogentcore/core / autoSaveOff

Method autoSaveOff

texteditor/buffer.go:553–557  ·  view source on GitHub ↗

AutoSave autoSaveOff turns off autosave and returns the prior state of Autosave flag. Call AutoSaveRestore with rval when done. See BatchUpdate methods for auto-use of this.

()

Source from the content-addressed store, hash-verified

551// Call AutoSaveRestore with rval when done.
552// See BatchUpdate methods for auto-use of this.
553func (tb *Buffer) autoSaveOff() bool {
554 asv := tb.Autosave
555 tb.Autosave = false
556 return asv
557}
558
559// autoSaveRestore restores prior Autosave setting,
560// from AutoSaveOff

Callers 1

batchUpdateStartMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected