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

Refresh Callback (+ Extra for AboutToRun) #1884

Merged
merged 4 commits into from
Sep 29, 2023
Merged

Conversation

Holt59
Copy link
Member

@Holt59 Holt59 commented Sep 26, 2023

  • Pass working directory and arguments to callback in AboutToRun - Optional to be backward compatible.
  • Add a new callback to be called after a refresh.

The goal of the new callback is to fix issues plugin developers have when doing stuff in onFinishedRun (or whatever the name is). Now they should be able to wrap what they do with onNextRefresh and hopefully avoid these problems.

This is to be tested, which is why it's WIP.

@Holt59 Holt59 changed the title WIP: Refresh Callback (+ Extra for AboutToRun) Refresh Callback (+ Extra for AboutToRun) Sep 27, 2023
@Holt59 Holt59 requested review from Silarn and Al12rs September 27, 2023 18:23
src/organizercore.h Outdated Show resolved Hide resolved
src/organizercore.cpp Outdated Show resolved Hide resolved
src/organizercore.cpp Outdated Show resolved Hide resolved
src/organizercore.cpp Outdated Show resolved Hide resolved
src/organizercore.cpp Show resolved Hide resolved
Silarn
Silarn previously approved these changes Sep 27, 2023
Copy link
Member

@Silarn Silarn left a comment

Choose a reason for hiding this comment

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

I don't think I have any additional notes provided you can respond to Al's questions.

@Holt59 Holt59 requested a review from Al12rs September 28, 2023 18:39
Copy link
Member

@Al12rs Al12rs left a comment

Choose a reason for hiding this comment

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

Thanks for addressing the feedback.
There was a lot of nice clean up in this PR.
I'm still not completely happy with the OnNextRefresh naming, as it is more of a OnNextNonRefresh but it good enough for now.

@Holt59 Holt59 merged commit ff0eb2f into master Sep 29, 2023
3 checks passed
@Holt59 Holt59 deleted the dev/refresh-callback branch October 22, 2023 09:08
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.

3 participants