Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Jul 7, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion app/windows/Storage/fileIntegration.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,10 @@ function askWhetherToWrapAllFiles () {
* ToDo: add loading messages/feedback
*/
export function addFilesPaths (paths) {
let promises
// If no paths were selected it means the user canceled
if (!paths) return

let promises
if (paths.length > 1 && askWhetherToWrapAllFiles()) {
// If the user says yes to wrapping all files, simply pass the paths array
promises = [addFilesFromFSPath(paths)]
Expand Down