Change current deck on drop-down deck change

After changing the deck in the drop-down menu of the card browser, the note editor would still be fixed on the old current deck. With this change the current deck changes when a deck is selected from the drop-down menu.

Maybe a question for the libanki people, why is there `id` and `did`? Is there a difference?