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

Fix NIMBY lock and refactor Nimby to Factory #1106

Conversation

roulaoregan-spi
Copy link
Contributor

Summarize your change.
Refactor Nimby to a Factory, now has two modes, Select and Pynput. Windows hosts will activate the Pynput mode by default. Fixed Nimby lock override, revamped logging removed print statements.

Nimby lock was reverting irregardless if the user was using the desktop, turning Nimby into a Factory for Windows capability.

Nimby now has two modes, Select and Pynput. Windows
hosts will activate the Pynput mode by default.
Bug fix: Two changes in rqcore.py: start() under
isDesktop to call onNimbyLock() if nimby override
is true. Second in launchFrame, added another condition
if Nimby override is True and user is active to not
launch frame. Revamped logging, removed print
statements.
@roulaoregan-spi roulaoregan-spi force-pushed the fix-nimby-lock-desktop branch 6 times, most recently from cf6f429 to cd51942 Compare March 23, 2022 01:10
try:
import pynput
except ImportError:
pass
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we really want to eat this error? IIUC it should be required if rqd.rqconstants.USE_NIMBY_PYNPUT == True, maybe add a check for that? Let's at least log something if it fails.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure thing, I can add a log for the import error.

@DiegoTavares DiegoTavares merged commit 6436623 into AcademySoftwareFoundation:master Apr 8, 2022
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.

None yet

3 participants