txtodo

[DORMANT] a minimalist todo list app inspired by jeff huang
git clone git://git.figbert.com/txtodo.git
Log | Files | Refs | README

commit 7045e6a81f97578710288493192b0b51478589af
parent 77adab764135106f31806c9b4e10213c8f243ffc
Author: FIGBERT <figbert@figbert.com>
Date:   Sat, 20 Mar 2021 19:01:40 -0700

Hide notification time instead of disabling

Diffstat:
MShared/Settings Views/NotificationSection.swift | 29+++++++++++++++--------------
MiOS/Info.plist | 4++--
MmacOS/Info.plist | 4++--
3 files changed, 19 insertions(+), 18 deletions(-)

diff --git a/Shared/Settings Views/NotificationSection.swift b/Shared/Settings Views/NotificationSection.swift @@ -28,20 +28,21 @@ struct NotificationSection: View { Text("txtodo notifications \(notificationsEnabled ? "enabled" : "disabled")") #endif } - HStack { - Label("time scheduled", systemImage: "clock") - Spacer() - Picker( - selection: $notificationTime, - label: Text("notification time"), - content: { - Text("8:30").tag(0) - Text("9:30").tag(1) - Text("10:30").tag(2) - }) - .labelsHidden() - .disabled(!notificationsEnabled) - .pickerStyle(SegmentedPickerStyle()) + if self.notificationsEnabled { + HStack { + Label("time scheduled", systemImage: "clock") + Spacer() + Picker( + selection: $notificationTime, + label: Text("notification time"), + content: { + Text("8:30").tag(0) + Text("9:30").tag(1) + Text("10:30").tag(2) + }) + .labelsHidden() + .pickerStyle(SegmentedPickerStyle()) + } } } } diff --git a/iOS/Info.plist b/iOS/Info.plist @@ -15,9 +15,9 @@ <key>CFBundlePackageType</key> <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> <key>CFBundleShortVersionString</key> - <string>3.0.8</string> + <string>3.0.9</string> <key>CFBundleVersion</key> - <string>3.0.8</string> + <string>3.0.9</string> <key>LSRequiresIPhoneOS</key> <true/> <key>UIApplicationSceneManifest</key> diff --git a/macOS/Info.plist b/macOS/Info.plist @@ -17,9 +17,9 @@ <key>CFBundlePackageType</key> <string>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> <key>CFBundleShortVersionString</key> - <string>1.0.8</string> + <string>1.0.9</string> <key>CFBundleVersion</key> - <string>1.0.8</string> + <string>1.0.9</string> <key>LSApplicationCategoryType</key> <string>public.app-category.productivity</string> <key>LSMinimumSystemVersion</key>