Update tooltip on dis/connect

Fixes the bug introduced in #10, so that the tooltip actually gets updated after every connection/disconnection.