Skip to content

Commit

Permalink
Skip splash screen timer if space is pressed
Browse files Browse the repository at this point in the history
Fixes #128.
  • Loading branch information
slipher committed Jul 16, 2024
1 parent 896264c commit 242b423
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions splash.qml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,18 @@ ApplicationWindow {
height: 228
flags: Qt.SplashScreen | Qt.WindowStaysOnTopHint

Item {
focus: true
Keys.onSpacePressed: {
// Do the same as if timer runs out, but immediately
if (timer.running) {
timer.stop();
settingsAction.enabled = false;
splashController.autoLaunchOrUpdate();
}
}
}

Timer {
id: timer
interval: splashMilliseconds
Expand Down

0 comments on commit 242b423

Please sign in to comment.