1
0
mirror of https://github.com/bitwarden/desktop synced 2025-12-21 02:33:15 +00:00

Add minimize when copying to clipboard option (#390)

* Add minimize when copying to clipboard option

* Change minimizeOnCopyToClipboardKey constant reference and fix whitespace

* Extend feature to context menus and view component

* Cleanup and refactor methods

* Refactor copy method and add minimizeOnCopyToClipboardKey constant to electronConstants.ts

* Use window.main subclass and fix formatting

* Revert "Use window.main subclass and fix formatting"

This reverts commit 0159613751.

* Reimplement part of 0159613751

* Add null check to VaultComponent::copyValue

* Remove unused import
This commit is contained in:
Elias Papavasileiou
2020-04-14 23:11:41 +03:00
committed by GitHub
parent 0faa987f41
commit a84af15c93
6 changed files with 51 additions and 1 deletions

View File

@@ -23,6 +23,11 @@ export class MessagingMain {
this.main.menuMain.updateApplicationMenuState(message.isAuthenticated, message.isLocked);
this.updateTrayMenu(message.isAuthenticated, message.isLocked);
break;
case 'minimize':
if (this.main.windowMain.win != null) {
this.main.windowMain.win.minimize();
}
break;
case 'showTray':
this.main.trayMain.showTray();
break;