diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 98740b7..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,51 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. - -## [2.1.0] - 2024-06_03 - -### Added - -- Added settings to save video recorded -- Added `removeRecord` function - -## [2.0.1] - 2024-06-03 - -### Changed - -- Comments improvement - -## [2.0.0] - 2024-05-31 - -### Changed - -- Complete overhaul of the code structure - -## [1.1.0] - 2024-05-31 - -### Added - -- Added Settings window. - -## [1.0.3] - 2024-05-14 - -### Changed - -- Updated the README.md file. - -## [1.0.2] - 2024-05-13 - -### Changed - -- Updated the README.md file. - -## [1.0.1] - 2024-05-13 - -### Added - -- Added README.md file. -- Added CHANGELOG.md file. - -## [1.0.0] - 2024-05-13 - -- Initial release. diff --git a/README.md b/README.md index e733d93..44e96be 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@
-> Version: **2.1.0** +> Version: **2.2.0** --- @@ -17,7 +17,6 @@ - [Requirements](#requirements) - [Installation](#installation) - [Usage](#usage) -- [Changelog](#changelog) - [Contributing](#contributing) - [License](#license) - [Authors](#authors) @@ -69,10 +68,6 @@ brew install ffmpeg -## Changelog - -See [CHANGELOG.md](CHANGELOG.md) for latest changes. - ## Contributing Contributing is disabled for this repository. diff --git a/SafeLock.xcodeproj/project.pbxproj b/SafeLock.xcodeproj/project.pbxproj index 1a43f5a..a2df7f1 100644 --- a/SafeLock.xcodeproj/project.pbxproj +++ b/SafeLock.xcodeproj/project.pbxproj @@ -339,7 +339,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 2.1.0; + CURRENT_PROJECT_VERSION = 2.2.0; DEVELOPMENT_ASSET_PATHS = "\"SafeLock/Preview Content\""; DEVELOPMENT_TEAM = ""; ENABLE_HARDENED_RUNTIME = NO; @@ -353,7 +353,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 2.1.0; + MARKETING_VERSION = 2.2.0; PRODUCT_BUNDLE_IDENTIFIER = Zarox28.SafeLock; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; @@ -372,7 +372,7 @@ "CODE_SIGN_IDENTITY[sdk=macosx*]" = "-"; CODE_SIGN_STYLE = Manual; COMBINE_HIDPI_IMAGES = YES; - CURRENT_PROJECT_VERSION = 2.1.0; + CURRENT_PROJECT_VERSION = 2.2.0; DEVELOPMENT_ASSET_PATHS = "\"SafeLock/Preview Content\""; DEVELOPMENT_TEAM = ""; ENABLE_HARDENED_RUNTIME = NO; @@ -386,7 +386,7 @@ "$(inherited)", "@executable_path/../Frameworks", ); - MARKETING_VERSION = 2.1.0; + MARKETING_VERSION = 2.2.0; PRODUCT_BUNDLE_IDENTIFIER = Zarox28.SafeLock; PRODUCT_NAME = "$(TARGET_NAME)"; PROVISIONING_PROFILE_SPECIFIER = ""; diff --git a/SafeLock/Views/MainView.swift b/SafeLock/Views/MainView.swift index afd812f..d7d8af5 100644 --- a/SafeLock/Views/MainView.swift +++ b/SafeLock/Views/MainView.swift @@ -93,7 +93,9 @@ struct MainView: View { Button("Enable", action: { if cameraManager.hasRecorded { cameraManager.hasRecorded = false } // Reset hasRecorded global.lockScreen() - monitorsManager.startMouseMonitoring() + if UserDefaults.standard.bool(forKey: "\(Bundle.main.bundleIdentifier!).mouseModuleState") { // Check if the mouse module is enabled + monitorsManager.startMouseMonitoring() + } global.currentState = 2 // Set current state to enabled logsManager.addLog(text: "Alarm enabled", type: 0) // Show message when enabled diff --git a/SafeLock/Views/SettingsView/ModulesSettingsView.swift b/SafeLock/Views/SettingsView/ModulesSettingsView.swift index 93ea80d..3c384d7 100644 --- a/SafeLock/Views/SettingsView/ModulesSettingsView.swift +++ b/SafeLock/Views/SettingsView/ModulesSettingsView.swift @@ -4,7 +4,10 @@ import SwiftUI // MARK: - Modules Settings View /// The modules settings SwiftUI view for the settings screen of the application struct ModulesSettingsView: View { +@AppStorage("\(Bundle.main.bundleIdentifier!).mouseModuleState") var mouseModuleState: Bool = true // Mouse module setting var body: some View { - VStack {} + VStack { + Toggle("Mouse monitor", isOn: $mouseModuleState) // Toggle to enable/disable mouse monitor + } } }