mirror of
https://github.com/atom/atom.git
synced 2026-02-08 13:45:09 -05:00
Add back and deprecate atom.showSaveDialogSync
This commit is contained in:
@@ -1080,6 +1080,13 @@ class AtomEnvironment {
|
||||
return this.deserialize(state)
|
||||
}
|
||||
|
||||
showSaveDialogSync (options = {}) {
|
||||
deprecate(`atom.showSaveDialogSync is deprecated and will be removed soon.
|
||||
Please, implement ::saveAs and ::getSaveDialogOptions instead for pane items
|
||||
or use Pane::saveItemAs for programmatic saving.`)
|
||||
return this.applicationDelegate.showSaveDialog(options)
|
||||
}
|
||||
|
||||
async saveState (options, storageKey) {
|
||||
if (this.enablePersistence && this.project) {
|
||||
const state = this.serialize(options)
|
||||
|
||||
Reference in New Issue
Block a user