feat(root): implement dynamic todo list refresh and UI enhancements
This change adds a mechanism to refresh the todo list dynamically when the underlying service updates, improving UI responsiveness and user experience. It also updates documentation and removes deprecated files. - New Features: - Added `_refresh_todos` method to rebuild the todo list when `get_todo_service().todos` changes. - Introduced `TodoListCapture` class for mouse capture handling of the todo list window. - Enhancements: - Updated README with corrected image paths, installation tips, and manual installation commands. - Introduced `start.py` to launch the application or lock mode. - Removed deprecated `config.json` and `debug_memory.py`. - Bug Fixes: - Fixed lock screen screenshot path in README.
This commit is contained in:
267 files changed
+24582
-394
No files matched your search
@@ -0,0 +1,24 @@
|
||||
import os
|
||||
import sys
|
||||
|
||||
# Ensure the 'src' directory is in the python path
|
||||
# This allows 'import main' and other src-relative imports to work from the root
|
||||
src_path = os.path.join(os.path.dirname(__file__), "src")
|
||||
if src_path not in sys.path:
|
||||
sys.path.insert(0, src_path)
|
||||
|
||||
def run_app():
|
||||
from main import main as app_main
|
||||
app_main()
|
||||
|
||||
|
||||
def run_lock():
|
||||
from lock import main as lock_main
|
||||
lock_main()
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
if len(sys.argv) > 1 and sys.argv[1] == "lock":
|
||||
run_lock()
|
||||
else:
|
||||
run_app()
|
||||
Reference in new issue
Block a user