Skip to content
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(tray): add start/stop recording options and global shortcut (WIP) #519

Conversation

onyedikachi-david
Copy link
Contributor

@onyedikachi-david onyedikachi-david commented Oct 17, 2024

Fixes: #515
/claim #515

WIP

Signed-off-by: David Anyatonwu <davidanyatonwu@gmail.com>
Copy link

vercel bot commented Oct 17, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
screenpipe ✅ Ready (Inspect) Visit Preview 💬 Add feedback Oct 19, 2024 6:30pm

Signed-off-by: David Anyatonwu <davidanyatonwu@gmail.com>
Signed-off-by: David Anyatonwu <davidanyatonwu@gmail.com>
last_restart: Instant,
restart_interval: Arc<Mutex<Duration>>,
restart_task: Option<JoinHandle<()>>,
dev_mode: Arc<Mutex<bool>>,
pub is_recording: bool,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this variable is not necessary, we just want to allow user to start or stop the sidecar with less friction than now (atm they need to go in screenpipe app and click on stop/start) we want to save them a few clicks/seconds on this

@louis030195
Copy link
Collaborator

ths seems to be #515 not #513

@onyedikachi-david
Copy link
Contributor Author

ths seems to be #515 not #513

Yeah, right.

Signed-off-by: David Anyatonwu <davidanyatonwu@gmail.com>
Signed-off-by: David Anyatonwu <davidanyatonwu@gmail.com>
let app_handle = app.handle().clone();
let event_app_handle = app_handle.clone(); // Clone for event emission

match app.handle().plugin(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you make this less nested? really hard to read

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay

@louis030195
Copy link
Collaborator

can you make the shortcut changeable in settings like done in here? #524

if too hard i can make it before release

@onyedikachi-david
Copy link
Contributor Author

can you make the shortcut changeable in settings like done in here? #524

if too hard i can make it before release

Yes, I thought of that too.

@onyedikachi-david
Copy link
Contributor Author

Closing this due to conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[bounty] tray menu buttons to stop/start recording + shortcut
2 participants