fix: overflow menu should be closed when click it once again (#1485)

This commit is contained in:
Hakjoon Sim
2020-10-31 23:02:12 +09:00
committed by GitHub
parent 5f811e4604
commit 1e1e940f7b
2 changed files with 4 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@@ -141,7 +141,9 @@ export class Transmission extends EventTarget {
this.setCurrentPopup(new MoveDialog(this, this.remote));
break;
case 'show-overflow-menu':
{
if (this.popup instanceof OverflowMenu) {
this.setCurrentPopup(null);
} else {
this.setCurrentPopup(
new OverflowMenu(
this,