main: Fix thumbnail updates only getting triggered once