close down dropdown menus on click + smaller tweaks

This commit is contained in:
zadam
2020-08-28 14:52:38 +02:00
parent 9873dd1242
commit 8259b4a32c
7 changed files with 13 additions and 7 deletions

View File

@@ -120,5 +120,8 @@ export default class GlobalMenuWidget extends BasicWidget {
this.$widget.find(".logout-button").toggle(!utils.isElectron());
this.$widget.find(".open-dev-tools-button").toggle(utils.isElectron());
this.$widget.on('click', '.dropdown-item',
() => this.$widget.find('.dropdown-toggle').dropdown('toggle'));
}
}