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

Move the reload resources button & Better UX when reload resource #39

Merged
merged 4 commits into from
Jun 14, 2023

Conversation

ronitjadhav
Copy link
Collaborator

#38
Moved the reload resources button to under the browser area, and use QPushButton instead.

#24

  • Show a busy cursor when retrieving the resources list, implement it as a decorator so that we can reuse it in other function/process
  • Show a success or failure message using QgsMessageBar

image

@ronitjadhav ronitjadhav linked an issue Jun 12, 2023 that may be closed by this pull request
@ronitjadhav ronitjadhav requested a review from ismailsunni June 12, 2023 09:33
Copy link
Collaborator

@ismailsunni ismailsunni left a comment

Choose a reason for hiding this comment

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

Good job, minor comments only. Update it, and then we can merge.

I modified the UI file so that the reload resource button has a good position.

lambda: self.populate_resources(force_update=True)
)

self.hide_preview()

def busy_cursor_decorator(func):
Copy link
Collaborator

Choose a reason for hiding this comment

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

Move it to a different file, e.g. utilities/qgis_util.py so that we can reuse it somewhere else and it's not specific for the ResourceBrowserDialog class.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Use a verb in your function name, and I guess no need to use "decorator" in it. So, it would be something like: show_busy_cursor

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done !!

@ismailsunni ismailsunni merged commit fa52794 into main Jun 14, 2023
@ismailsunni ismailsunni deleted the 38-move-the-reload-resources-button branch June 14, 2023 02:34
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.

Move the Reload Resources Button
2 participants