From fbcf52fb0f064976f1dc14dce20f6585d159de7e Mon Sep 17 00:00:00 2001 From: Jan Hovancik Date: Sat, 18 Nov 2023 18:04:17 +0100 Subject: [PATCH] hide autostart option for Windows Store build as it doesn't work --- CHANGELOG.md | 3 +++ app/css/commons.css | 3 ++- app/platform.js | 3 +++ app/preferences.html | 2 +- 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 72856ec07..551ff19ee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,9 @@ and this project adheres to [Semantic Versioning](http://semver.org/). ### Fixed - improve DND monitoring memory usage +### Changed +- hide autostart option for Windows Store build as it doesn't work + ## [1.15.0] - 2023-11-11 ### Added - new end-of-the-break sound diff --git a/app/css/commons.css b/app/css/commons.css index 06fc54a36..bd49bb42c 100644 --- a/app/css/commons.css +++ b/app/css/commons.css @@ -156,7 +156,8 @@ body { .darwin .darwin-hidden, .linux .linux-hidden, .freebsd .linux-hidden, -.openbsd .linux-hidden { +.openbsd .linux-hidden, +.store .store-hidden { display: none; } diff --git a/app/platform.js b/app/platform.js index 1a75220a2..6df45c3b4 100644 --- a/app/platform.js +++ b/app/platform.js @@ -1 +1,4 @@ document.body.classList.add(process.platform) +if (process.windowsStore) { + document.body.classList.add('store') +} diff --git a/app/preferences.html b/app/preferences.html index c418c8e8e..3fd03ca53 100644 --- a/app/preferences.html +++ b/app/preferences.html @@ -44,7 +44,7 @@
-
+