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

Forcing users to restart if there is any update detected. #407

Merged
merged 2 commits into from
Mar 25, 2023

Conversation

TheDuckCow
Copy link
Member

This applies to both manual as well as addon-updater updates. The reason for this change is to avoid errors that will happen in future versions when we rename modules, remove functions, and generally revamp the structure of MCprep. Many users encounter errors due to not restarting Blender already, even with 'typical' updates.

closes #402

This applies to both manual as well as addon-updater updates. The reason
for this change is to avoid errors that will happen in future versions
when we rename modules, remove functions, and generally revamp the
structure of MCprep. Many users encounter errors due to not restarting
Blender already, even with 'typical' updates.
@TheDuckCow TheDuckCow self-assigned this Mar 25, 2023
@TheDuckCow TheDuckCow linked an issue Mar 25, 2023 that may be closed by this pull request
@@ -845,6 +903,10 @@ class MCPREP_PT_bridge(bpy.types.Panel):
bl_category = "MCprep"

def draw(self, context):
if addon_just_updated():
Copy link
Collaborator

Choose a reason for hiding this comment

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

It would be nice if there was a short comment above these explaining what they do for any future developers

Copy link
Member Author

Choose a reason for hiding this comment

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

Do you think it's sufficient to have that comment in the code of those functions? Otherwise we'll be having copies of the comment in 10x places, adding to the boilerplate.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Should be fine as long as it's explained what the functions do and why they do that they do

Copy link
Member Author

Choose a reason for hiding this comment

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

So... would you modify the docstrings that are there now I guess is the question :)

Copy link
Collaborator

@StandingPadAnimations StandingPadAnimations left a comment

Choose a reason for hiding this comment

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

Just a couple of minor things needed

@StandingPadAnimations
Copy link
Collaborator

Looks good now

@TheDuckCow TheDuckCow merged commit c3be7dc into dev Mar 25, 2023
@TheDuckCow TheDuckCow deleted the 402-force-blender-restart-if-update-detected branch March 25, 2023 18:17
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.

Force blender restart if update detected
2 participants