[PR #151] [MERGED] Windows duplicate keys #643

Closed
opened 2026-03-02 23:49:10 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/aome510/spotify-player/pull/151
Author: @ViniciusAndr
Created: 3/2/2023
Status: Merged
Merged: 3/2/2023
Merged by: @aome510

Base: masterHead: windows_duplicate_keys


📝 Commits (3)

  • 0812e47 solving duplicate windows keys error
  • 52db0da removing unnecessary variable
  • 3f86a9f only handle pressed key events

📊 Changes

1 file changed (+11 additions, -1 deletions)

View changed files

📝 spotify_player/src/event/mod.rs (+11 -1)

📄 Description

Resolves #136

Hi, I saw that the error happened because the code was called twice, I couldn't figure out the reason, but this change worked for me.

I put a timer to give a delay of 0.3 seconds for each command only when it is windows and that solved the error, as I have no experience in rust so I don't know if there would be another way to solve it


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/aome510/spotify-player/pull/151 **Author:** [@ViniciusAndr](https://github.com/ViniciusAndr) **Created:** 3/2/2023 **Status:** ✅ Merged **Merged:** 3/2/2023 **Merged by:** [@aome510](https://github.com/aome510) **Base:** `master` ← **Head:** `windows_duplicate_keys` --- ### 📝 Commits (3) - [`0812e47`](https://github.com/aome510/spotify-player/commit/0812e4736f6e3dad8ffdcb31f29c94e9d2d2fca4) solving duplicate windows keys error - [`52db0da`](https://github.com/aome510/spotify-player/commit/52db0da7ea57e974c0043d3a594b9a60929e8005) removing unnecessary variable - [`3f86a9f`](https://github.com/aome510/spotify-player/commit/3f86a9f38904f404df81573a5f14f375c71b9531) only handle pressed key events ### 📊 Changes **1 file changed** (+11 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `spotify_player/src/event/mod.rs` (+11 -1) </details> ### 📄 Description Resolves #136 Hi, I saw that the error happened because the code was called twice, I couldn't figure out the reason, but this change worked for me. I put a timer to give a delay of 0.3 seconds for each command only when it is windows and that solved the error, as I have no experience in rust so I don't know if there would be another way to solve it --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 23:49:10 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#643
No description provided.