fix: crash on input file handler dialog (#19897)
fix: crash on input file handler dialog (#19897)

* fix: crash on input file handler dialog

* invert cancellation logic

gerhardberger/electron,electron/electron,electron/electron,seanchas116/electron,seanchas116/electron,seanchas116/electron,bpasero/electron,bpasero/electron,gerhardberger/electron,electron/electron,bpasero/electron,electron/electron,electron/electron,bpasero/electron,bpasero/electron,seanchas116/electron,seanchas116/electron,gerhardberger/electron,electron/electron,seanchas116/electron,gerhardberger/electron,bpasero/electron,gerhardberger/electron,gerhardberger/electron,bpasero/electron,gerhardberger/electron,electron/electron