-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Add auto-run functionality to the Windows app #74
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Fixes #58 Add auto-run functionality to the Windows app. * Add `set_auto_run` and `remove_auto_run` functions in `monitor-app/src/core/app_settings.py` to create and remove registry entries for auto-run. * Modify `SettingsLoader` class in `monitor-app/src/core/app_settings.py` to include `auto_run` setting. * Add a checkbox in `monitor-app/src/gui/settings_dialog.py` to enable/disable auto-run functionality. * Modify the `save_settings` method in `monitor-app/src/gui/settings_dialog.py` to save the `auto_run` setting. * Import `set_auto_run` and `remove_auto_run` in `monitor-app/main.py`. * Modify the `initialize_application` function in `monitor-app/main.py` to call `set_auto_run` or `remove_auto_run` based on the setting. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/bl4ckswordsman/disco-beacon/issues/58?shareId=XXXX-XXXX-XXXX-XXXX).
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
* **Core Settings**: - Add `set_auto_run` and `remove_auto_run` functions to manage registry entries for auto-run. - Modify `SettingsLoader` class to include `auto_run` setting. * **GUI Settings Dialog**: - Add a checkbox to enable/disable auto-run functionality. - Modify `save_settings` method to save the `auto_run` setting. * **Main Application**: - Import `set_auto_run` and `remove_auto_run` from `app_settings`. - Import `os` module. - Modify `initialize_application` function to call `set_auto_run` or `remove_auto_run` based on the setting.
* **Core settings**: - Add `set_auto_run` and `remove_auto_run` functions to manage registry entries for auto-run. - Modify `SettingsLoader` class to include `auto_run` setting. * **GUI settings dialog**: - Add a checkbox to enable/disable auto-run functionality. - Modify `save_settings` method to save the `auto_run` setting. * **Main application**: - Import `set_auto_run` and `remove_auto_run` functions. - Modify `initialize_application` function to call `set_auto_run` or `remove_auto_run` based on the setting. * **Platform utilities**: - Add `is_windows` function to check if the current platform is Windows.
* **`app_settings.py`** - Add `is_windows` check in `set_auto_run` and `remove_auto_run` functions - Import `is_windows` from `platform_utils` * **`main.py`** - Add `is_windows` check before setting or removing auto-run - Import `is_windows` from `platform_utils`
* Wrap `winreg.OpenKey` and `winreg.DeleteValue` in a try-except block * Catch `FileNotFoundError` and pass
…utable path handling
…treamline settings management
…add debug toggle in test spec
…ndows_main.pyw entry point
…for debug mode configuration
…file path and improve autorun handling
…orun feature for Windows
…inux refactor: Remove unused imports in main.py and settings_dialog.py
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixes #58
Add auto-run functionality to the Windows app.
set_auto_run
andremove_auto_run
functions inmonitor-app/src/core/app_settings.py
to create and remove registry entries for auto-run.SettingsLoader
class inmonitor-app/src/core/app_settings.py
to includeauto_run
setting.monitor-app/src/gui/settings_dialog.py
to enable/disable auto-run functionality.save_settings
method inmonitor-app/src/gui/settings_dialog.py
to save theauto_run
setting.set_auto_run
andremove_auto_run
inmonitor-app/main.py
.initialize_application
function inmonitor-app/main.py
to callset_auto_run
orremove_auto_run
based on the setting.For more details, open the Copilot Workspace session.