schlagmichdoch / PairDrop

PairDrop: Local file sharing in your browser. Inspired by Apple's AirDrop. Fork of Snapdrop.
https://pairdrop.net
GNU General Public License v3.0
3.66k stars 193 forks source link

[Enhancement] Only open one dialog at a time #306

Open schlagmichdoch opened 1 month ago

schlagmichdoch commented 1 month ago

What problem is solved by the new feature When receive dialog is opened and another transfer is requested, dialogs are opening on top of each other. Users can be confused if the dialogs change just before the click a button.

Describe the feature Only open one dialog at a time by adding a dialog queue in the Dialog super class. Save the Dialog instance itself to the queue to invoke the correct method via this.dialogQueue.shift().show()