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

EnvironmentChecker#virtualDisplayWorkingTest no longer fails if dispays are either disabled, or not of type virtual #1807

Merged
merged 2 commits into from
Nov 3, 2024

Conversation

BlvckBytes
Copy link
Contributor

A user reported that they've seen the warning log-entry, as printed by this environment-check, namely

VirtualDisplayItemManager is null, this shouldn't happen, contact with QuickShop-Hikari developer.

even though they've disabled displays altogether, by setting shop.display-items to false; this is undesired behavior. My commit simply mimics the checks as performed by it's line-relative predecessor virtualDisplaySupportTest, as to pass if displays are disabled, or not of type virtual.

…ays are either disabled, or not of type virtual
@YuanYuanOwO
Copy link
Collaborator

Not a very important point.
The display are disabled
can be changed to
display-item is disabled
?

@BlvckBytes
Copy link
Contributor Author

As mentioned, my commit simply mimics already existing checks, so I did not want to introduce more change than necessary. If we can all agree on your proposal, then the changes should be applied to both sites. I, for one, also think that it would be more helpful to print the corresponding config-key directly.

@BlvckBytes
Copy link
Contributor Author

I think it would be even better to directly name config-keys, as to help the user understand why the plugin behaves as it does; I made those changes. What do you think?

@YuanYuanOwO
Copy link
Collaborator

LGTM
thanks

@creatorfromhell
Copy link
Contributor

Looking good, for future reference please refer to branch naming scheme in the contributing guidelines.

https://github.com/QuickShop-Community/QuickShop-Hikari/blob/hikari/.contributing/contributing.md#best-practices-for-branch-names

@creatorfromhell creatorfromhell merged commit 990e4f2 into QuickShop-Community:hikari Nov 3, 2024
2 checks passed
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