Skip to content

Commit

Permalink
Alow group volume dialog to be closed via its button.
Browse files Browse the repository at this point in the history
  • Loading branch information
CDrummond committed Jan 12, 2025
1 parent ce15afd commit 8387991
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions MaterialSkin/HTML/material/html/js/groupvolume-dialog.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ Vue.component('lms-groupvolume', {
mounted() {
this.closeTimer = undefined;
bus.$on('groupvolume.open', function(playerStatus, scrollCurrent) {
if (undefined!=this.closeTime && new Date().getTime()-this.closeTime<25) {
return;
}
this.openTime = new Date().getTime();
if (queryParams.party || queryParams.single) {
return;
Expand Down Expand Up @@ -168,6 +171,7 @@ Vue.component('lms-groupvolume', {
this.show=false;
this.showing=false;
this.cancelCloseTimer();
this.closeTime = new Date().getTime();
},
i18n(str) {
if (this.show) {
Expand Down

0 comments on commit 8387991

Please sign in to comment.