mirror of
https://github.com/HMCL-dev/HMCL.git
synced 2025-08-04 03:46:57 -04:00
Add tooltip
This commit is contained in:
parent
009552f479
commit
1a8ae7e78f
@ -129,7 +129,10 @@ public final class AccountListItemSkin extends SkinBase<AccountListItem> {
|
|||||||
JFXButton btnRefresh = new JFXButton();
|
JFXButton btnRefresh = new JFXButton();
|
||||||
SpinnerPane spinnerRefresh = new SpinnerPane();
|
SpinnerPane spinnerRefresh = new SpinnerPane();
|
||||||
spinnerRefresh.getStyleClass().setAll("small-spinner-pane");
|
spinnerRefresh.getStyleClass().setAll("small-spinner-pane");
|
||||||
btnRefresh.setDisable(skinnable.getAccount() instanceof MicrosoftAccount && Accounts.OAUTH_CALLBACK.getClientId().isEmpty());
|
if (skinnable.getAccount() instanceof MicrosoftAccount && Accounts.OAUTH_CALLBACK.getClientId().isEmpty()) {
|
||||||
|
btnRefresh.setDisable(true);
|
||||||
|
FXUtils.installFastTooltip(btnRefresh, i18n("account.methods.microsoft.snapshot"));
|
||||||
|
}
|
||||||
btnRefresh.setOnAction(e -> {
|
btnRefresh.setOnAction(e -> {
|
||||||
spinnerRefresh.showSpinner();
|
spinnerRefresh.showSpinner();
|
||||||
skinnable.refreshAsync()
|
skinnable.refreshAsync()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user