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
Allow selecting a default account to use with an instance #685
Conversation
a4555f5
to
f1fa28c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
seems to be working mostly fine, thanks! most the suggested changes are only about some code cleanups :)
we have a .clang-format
thingy in the launcher's root directory, please use that on the code you've added, the formatting is somewhat inconsistent :p
imo the option name |
As in, the text seen in the GUI or the key used for the settings store? |
Ah yes, my apologies - I was trying to follow the style of the code I saw and didn't notice the .clang-format. Will do! |
In the GUI. "for this instance" could be seen as redundant. |
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com>
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com>
Co-authored-by: flow <flowlnlnln@gmail.com> Signed-off-by: Aaron Sonin <10217842+byteduck@users.noreply.github.com> Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com>
Co-authored-by: flow <flowlnlnln@gmail.com> Signed-off-by: Aaron Sonin <10217842+byteduck@users.noreply.github.com> Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com>
Co-authored-by: flow <flowlnlnln@gmail.com> Signed-off-by: Aaron Sonin <10217842+byteduck@users.noreply.github.com> Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com>
Co-authored-by: flow <flowlnlnln@gmail.com> Signed-off-by: Aaron Sonin <10217842+byteduck@users.noreply.github.com> Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com>
Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com>
5ae4802
to
ba81ad1
Compare
I've reworded it to "Override default account". When unchecked, the instance-specific account selector will show the current global setting for the default account. |
Hmm, not sure why the |
seems to be some issue on develop, i've seen another PR with the same error earlier today, dw about that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sorry, i kinda forgot i didn't already review this 😅
anyway, the code looks mostly good, there's just a little cornercase and maybe moving some logic to a helper function, otherwise it's all good! thanks!
No worries! I'll get the corner case fixed soon :) |
05d6227
to
160dd09
Compare
…hub.com> I, Aaron <10217842+byteduck@users.noreply.github.com>, hereby add my Signed-off-by to this commit: 160dd09 Signed-off-by: Aaron <10217842+byteduck@users.noreply.github.com>
Seems like some Ubuntu package mirrors are down which caused the checks to fail... I'm encountering this on my own projects too 😬 |
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ideally we'd have some place in the UI to indicate that the account for a given instance is overridden. However, that'd probably mean messing with the account selector thingy, so it's probably a bit troublesome for now...
anyway, this looks good to me for the time being, so thank you! :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
This commit adds the functionality to select a default account to use when launching an instance (#341). If no account is supplied via the accountToUse parameter of
Application::launch
, then the instance will launched logged into the default account for the instance (or the global default account if none is set for the instance).The setting is found in the Miscellaneous tab of the instance settings and looks like this:
I couldn't manage to get a screenshot with the dropdown open, but it contains an option for every account configured in Prism. To revert the setting, one can simply uncheck the "Set a default account to use with this instance" box. If the account configured is removed, then the setting is reverted to showing "No default account".