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

Welcome screen implementation #753

Merged
merged 8 commits into from
Dec 8, 2020
Merged

Welcome screen implementation #753

merged 8 commits into from
Dec 8, 2020

Conversation

samtygier-stfc
Copy link
Collaborator

@samtygier-stfc samtygier-stfc commented Dec 3, 2020

Fixes #671

  • Shows at startup or from Help->About
  • Show version
  • Checkbox to disable show are start
  • Re-show for new version
  • Useful links
  • Branding
  • Avoid displaying during tests

@samtygier-stfc
Copy link
Collaborator Author

image
image

I think version_check.py could be refactored, to avoid multiple conda and web calls. And make getting the current version easier.

@samtygier-stfc
Copy link
Collaborator Author

This now does everything the old dialog did, plus the new features.

New links can be added to the list in mantidimaging/gui/windows/welcome_screen/presenter.py

New issue checks (e.g. missing conda, insufficient free memory) could be added to check_issues()

@samtygier-stfc samtygier-stfc marked this pull request as ready for review December 7, 2020 17:51
Copy link
Contributor

@dtasev dtasev left a comment

Choose a reason for hiding this comment

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

Looks really good - I love the purple recolor!

Functionally works, just a couple of small comments

mantidimaging/core/utility/version_check.py Outdated Show resolved Hide resolved
mantidimaging/core/utility/version_check.py Show resolved Hide resolved
Shows at startup or from Help->About

Checkbox to disable show are start

Patched out in tests of MainWindowView to avoid displaying during tests
Add background
Add OK button
Add issue box, hidden until issues added
Move old version error to welcome screen
Collection free functions in a class. Store values from calls to conda, so that they only get called once even if accessed from multiple places.

  from mantidimaging.core.utility.version_check import versions

gives a global istance of the CheckVersion class, to prevent mutilple calls to conda.
@dtasev dtasev merged commit 008ca57 into master Dec 8, 2020
@dtasev dtasev deleted the 671_welcome_screen branch December 8, 2020 16:11
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.

User welcome screen
2 participants