Fix app not displayed when click on the dock icon under macOS (#424)

This commit is contained in:
fanyang
2024-10-14 21:33:48 +08:00
committed by GitHub
parent 949003ee1b
commit 70708b34cc
5 changed files with 38 additions and 21 deletions

View File

@@ -69,10 +69,14 @@ impl<'d> TxToken for BufferTxToken<'d> {
}
impl Device for BufferDevice {
type RxToken<'a> = BufferRxToken
where Self:'a;
type TxToken<'a> = BufferTxToken<'a>
where Self:'a;
type RxToken<'a>
= BufferRxToken
where
Self: 'a;
type TxToken<'a>
= BufferTxToken<'a>
where
Self: 'a;
fn receive(&mut self, _timestamp: Instant) -> Option<(Self::RxToken<'_>, Self::TxToken<'_>)> {
match self.recv_queue.pop_front() {