@allow-large-files [flipper][deps] Upgrade Electron (#636)
Summary: allow-large-files Pull Request resolved: https://github.com/facebook/flipper/pull/636 per title Reviewed By: jknoxville Differential Revision: D18374332 fbshipit-source-id: f7300f527b65b65caebac51c5bcf8f019dc34228
This commit is contained in:
committed by
Facebook Github Bot
parent
0914deda2d
commit
a578b4d559
@@ -669,8 +669,9 @@ export function showOpenDialog(store: Store) {
|
||||
properties: ['openFile'],
|
||||
filters: [{extensions: ['flipper', 'json', 'txt'], name: 'Flipper files'}],
|
||||
};
|
||||
remote.dialog.showOpenDialog(options, (filePaths?: Array<string>) => {
|
||||
if (filePaths !== undefined && filePaths.length > 0) {
|
||||
remote.dialog.showOpenDialog(options).then(result => {
|
||||
const filePaths = result.filePaths;
|
||||
if (filePaths.length > 0) {
|
||||
tryCatchReportPlatformFailures(() => {
|
||||
importFileToStore(filePaths[0], store);
|
||||
}, `${IMPORT_FLIPPER_TRACE_EVENT}:UI`);
|
||||
|
||||
Reference in New Issue
Block a user