Fix showing update notification
Updates variables first before checking state() which depends on them
Differential Revision: https://phabricator.kde.org/D20161