Skip to content

feat: add autostart toggle to settings panel#33

Merged
luke merged 1 commit intomainfrom
feat/autostart-ui
Aug 7, 2025
Merged

feat: add autostart toggle to settings panel#33
luke merged 1 commit intomainfrom
feat/autostart-ui

Conversation

@luke
Copy link
Copy Markdown
Contributor

@luke luke commented Aug 7, 2025

Summary

  • Adds a toggle switch in Settings > General to enable/disable automatic startup at system login
  • Uses the official tauri-plugin-autostart for cross-platform compatibility
  • Shows current autostart status with visual indicators

Changes

  • Added @tauri-apps/plugin-autostart dependency
  • Created AutostartToggle.svelte component with enable/disable functionality
  • Integrated autostart toggle into Settings panel General tab
  • Added autostart permissions to build.rs for capability generation
  • Handles loading states and errors gracefully

Screenshots

The toggle appears at the top of the General Settings tab with:

  • Visual toggle switch
  • Status badge (Enabled/Disabled)
  • Descriptive text explaining the feature

Test Plan

  • Toggle enables/disables autostart correctly
  • Status persists across app restarts
  • Error handling works for permission issues
  • Test on macOS with LaunchAgent
  • Verify app launches at login when enabled

- Add @tauri-apps/plugin-autostart dependency
- Create AutostartToggle component with enable/disable functionality
- Integrate autostart toggle into Settings panel General tab
- Add autostart permissions to build.rs for capability generation
- Show current autostart status with visual indicators
- Handle loading states and errors gracefully

This allows users to configure the app to launch automatically at system login.
@luke luke merged commit 99b4d91 into main Aug 7, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant