From 96df402df7943b888941e63f37308e11c67c187d Mon Sep 17 00:00:00 2001 From: Matt Gibson Date: Mon, 12 Apr 2021 10:13:53 -0500 Subject: [PATCH] Simplify and fix file picker logic (#1779) --- src/popup/send/send-add-edit.component.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/popup/send/send-add-edit.component.ts b/src/popup/send/send-add-edit.component.ts index b993da74fd..f61fc0b9c0 100644 --- a/src/popup/send/send-add-edit.component.ts +++ b/src/popup/send/send-add-edit.component.ts @@ -47,10 +47,7 @@ export class SendAddEditComponent extends BaseAddEditComponent { } get showFileSelector(): boolean { - return !this.editMode && (!this.isFirefox && !this.isSafari && !this.isLinux && !this.isUnsupportedMac) || - (this.isFirefox && (this.inSidebar || this.inPopout)) || - (this.isSafari && this.inPopout) || - ((this.isLinux || this.isUnsupportedMac) && !this.isFirefox && (this.inSidebar || this.inPopout)); + return !(this.editMode || this.showFilePopoutMessage); } get showFilePopoutMessage(): boolean {