]> cloud.milkyroute.net Git - dolphin.git/commit
Fix terminal panel not keeping up with dir changes
authorFelix Ernst <fe.a.ernst@gmail.com>
Wed, 27 Apr 2022 10:40:40 +0000 (10:40 +0000)
committerFelix Ernst <fe.a.ernst@gmail.com>
Wed, 27 Apr 2022 10:40:40 +0000 (10:40 +0000)
commite70e12e3bdf3ce4e9cca4c8f003655ea10b21d7e
tree02063a1dbc47534550d6f2257d2c9c0cbd7e3f2c
parent4012ea30c9061a5259c96de64aca114cec5014aa
Fix terminal panel not keeping up with dir changes

The terminal panel is supposed to show the same location as the
currently active Dolphin view at all times.

However there was an issue when the terminal is supposed to
quickly switch to a new location and then back again to the old
one. The terminal ignored the switch to the old location unless it
had already fully switched to the new location. Because it isn't
particularly fast at fully switching to the new location, it would
never do the expected thing of switching back to the old location.

This commit makes it so the switch to the old location is only
ignored if there are no in-progress switches to a different
location.

BUG: 391380

BUG: 416690

FIXED-IN: 22.04.2

Not totally sure if this fixes everything but it seems like an improvement.
src/panels/terminal/terminalpanel.cpp