1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-11-27 08:21:03 +02:00

Desktop: Fixes #3366: Revealing file in Windows did not work

This commit is contained in:
Laurent Cozic 2020-07-22 17:24:01 +01:00
parent 17e140ba56
commit f3dc3602c8

View File

@ -1,5 +1,5 @@
const { _, setLocale } = require('lib/locale.js');
const { dirname } = require('lib/path-utils.js');
const { dirname, toSystemSlashes } = require('lib/path-utils.js');
const { BrowserWindow, nativeTheme } = require('electron');
class Bridge {
@ -30,7 +30,7 @@ class Bridge {
}
showItemInFolder(fullPath) {
return require('electron').shell.showItemInFolder(fullPath);
return require('electron').shell.showItemInFolder(toSystemSlashes(fullPath));
}
newBrowserWindow(options) {