mirror of
https://github.com/atom/atom.git
synced 2026-02-08 13:45:09 -05:00
Make showSaveDialog optionally async
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user