From f94853eb28c8a2f87e132b6c15dc9795adc907a3 Mon Sep 17 00:00:00 2001 From: Adriaan de Groot Date: Fri, 5 Mar 2021 23:17:57 +0100 Subject: [PATCH] [finishedq] Always restart if possible --- src/modules/finishedq/finishedq.qml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/modules/finishedq/finishedq.qml b/src/modules/finishedq/finishedq.qml index 92559569c..1969c4c82 100644 --- a/src/modules/finishedq/finishedq.qml +++ b/src/modules/finishedq/finishedq.qml @@ -91,4 +91,16 @@ Page { } } + function onActivate() + { + // This QML page has a **button** for restarting, + // so just pretend the setting is clicked; this is a + // poor solution, recommended is to set restartNowMode to Always + // in the config. + config.setRestartNowWanted(true); + } + + function onLeave() + { + } }