mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-09-08 13:44:53 +08:00
Fix opening attachments
This commit is contained in:
parent
725db1c4e0
commit
e6d3290c4e
3 changed files with 3 additions and 3 deletions
|
@ -21,7 +21,7 @@ const FormErrorMessage = (props: FormErrorProps) => {
|
|||
const onViewLog = () => {
|
||||
const logPath = temp.path({ suffix: '.log' });
|
||||
fs.writeFileSync(logPath, log);
|
||||
shell.openItem(logPath);
|
||||
shell.openPath(logPath);
|
||||
};
|
||||
rawLogLink = (
|
||||
<a href="" onClick={onViewLog} style={{ paddingLeft: 5 }}>
|
||||
|
|
|
@ -453,7 +453,7 @@ export default class Application extends EventEmitter {
|
|||
});
|
||||
|
||||
this.on('application:view-license', () => {
|
||||
shell.openItem(path.join(this.resourcePath, 'static', 'all_licenses.html'));
|
||||
shell.openPath(path.join(this.resourcePath, 'static', 'all_licenses.html'));
|
||||
});
|
||||
|
||||
if (process.platform === 'darwin') {
|
||||
|
|
|
@ -159,7 +159,7 @@ class AttachmentStore extends MailspringStore {
|
|||
|
||||
_fetchAndOpen = file => {
|
||||
return this._prepareAndResolveFilePath(file)
|
||||
.then(filePath => shell.openItem(filePath))
|
||||
.then(filePath => shell.openPath(filePath))
|
||||
.catch(this._catchFSErrors)
|
||||
.catch(error => {
|
||||
this._presentError({ file, error });
|
||||
|
|
Loading…
Add table
Reference in a new issue