Make showSaveDialog optionally async

This commit is contained in:
Wliu
2017-11-20 19:29:39 +01:00
parent 6576d26b61
commit 9f9ec92e9b
3 changed files with 19 additions and 16 deletions

View File

@@ -1076,14 +1076,6 @@ class AtomEnvironment {
return this.deserialize(state)
}
showSaveDialog (callback) {
callback(this.showSaveDialogSync())
}
showSaveDialogSync (options = {}) {
this.applicationDelegate.showSaveDialog(options)
}
async saveState (options, storageKey) {
if (this.enablePersistence && this.project) {
const state = this.serialize(options)