fix: overflow menu should be closed when click it once again (#1485)
This commit is contained in:
parent
5f811e4604
commit
1e1e940f7b
File diff suppressed because one or more lines are too long
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue