save state before join public server

This commit is contained in:
Roman Trapeznikov 2022-02-07 16:47:37 +03:00
parent d16b569052
commit 449fc296d5
No known key found for this signature in database
GPG Key ID: 89BED52F1E290F8D

View File

@ -1209,6 +1209,7 @@ class PublicGatherTab(GatherTab):
def on_public_party_activate(self, party: PartyEntry) -> None:
"""Called when a party is clicked or otherwise activated."""
self.save_state()
if party.queue is not None:
from bastd.ui.partyqueue import PartyQueueWindow
ba.playsound(ba.getsound('swish'))