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: implement a player-specific queue for clipboard IO tasks #2267

Merged
merged 3 commits into from
Jun 6, 2023

Conversation

dordsor21
Copy link
Member

@dordsor21 dordsor21 requested a review from a team as a code owner June 4, 2023 22:38
@github-actions github-actions bot added the Feature This PR adds a new feature label Jun 4, 2023
@NotMyFault
Copy link
Collaborator

@dordsor21
Copy link
Member Author

The clipboard issue will be intermittent and isn't particularly easy to replicate, so it's more an over-time test kinda thing

@NotMyFault NotMyFault mentioned this pull request Jun 5, 2023
doc.close(); // Ensure closed before deletion
doc.getFile().delete();
});
}
}
} else if (Settings.settings().CLIPBOARD.DELETE_ON_LOGOUT || Settings.settings().CLIPBOARD.USE_DISK) {
WorldEdit.getInstance().getExecutorService().submit(() -> session.setClipboard(null));
} else if (Settings.settings().CLIPBOARD.USE_DISK) {
Copy link
Member

Choose a reason for hiding this comment

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

I guess this is fine for now as it was like that before, but actually the clipboard can be set by plugins to arbitrary implementations, so relying on the settings isn't exactly correct.

@dordsor21 dordsor21 requested a review from SirYwell June 5, 2023 19:27
@dordsor21 dordsor21 force-pushed the feat/player-clipboard-queues branch from 99290ea to 999895c Compare June 6, 2023 15:18
@dordsor21 dordsor21 requested a review from SirYwell June 6, 2023 15:18
Copy link
Collaborator

@NotMyFault NotMyFault left a comment

Choose a reason for hiding this comment

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

Let's see how it turns out!

@NotMyFault NotMyFault enabled auto-merge (squash) June 6, 2023 22:11
auto-merge was automatically disabled June 6, 2023 22:21

Merge queue setting changed

@NotMyFault NotMyFault enabled auto-merge June 6, 2023 22:22
@NotMyFault NotMyFault added this pull request to the merge queue Jun 6, 2023
@NotMyFault NotMyFault removed this pull request from the merge queue due to a manual request Jun 6, 2023
@NotMyFault NotMyFault merged commit 1356cd5 into main Jun 6, 2023
@NotMyFault NotMyFault deleted the feat/player-clipboard-queues branch June 6, 2023 22:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature This PR adds a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants