Skip to content

A full-featured download manager.

refactor: rename handleFileAssociation

Dr_rOotaf710aa2658b
diff --git a/src/main/Application.js b/src/main/Application.js
index fed92999..7b8da609 100644
--- a/src/main/Application.js
+++ b/src/main/Application.js
@@ -130,7 +130,7 @@ export default class Application extends EventEmitter {
this.showPage('index')
}
- handleFileAssociation (path) {
+ handleFile (path) {
if (!path) {
return
}
@@ -238,7 +238,7 @@ export default class Application extends EventEmitter {
]
}, (filePaths) => {
const [filePath] = filePaths
- this.handleFileAssociation(filePath)
+ this.handleFile(filePath)
})
})
diff --git a/src/main/Launcher.js b/src/main/Launcher.js
index 8d5066fc..8c91eb6a 100644
--- a/src/main/Launcher.js
+++ b/src/main/Launcher.js
@@ -95,7 +95,7 @@ export default class Launcher extends EventEmitter {
sendFileToApplication () {
if (this.file && global.application && global.application.isReady) {
- global.application.handleFileAssociation(this.file)
+ global.application.handleFile(this.file)
this.file = EMPTY_STRING
}
}
@@ -112,7 +112,7 @@ export default class Launcher extends EventEmitter {
}
if (this.file) {
- global.application.handleFileAssociation(this.file)
+ global.application.handleFile(this.file)
}
})
})