mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 05:58:38 +00:00
Show forbidden icon on disabled webview button.
This commit is contained in:
parent
b6664625ea
commit
f20475f07e
@ -178,6 +178,8 @@ void Panel::Button::updateFg(QColor fg) {
|
||||
void Panel::Button::updateArgs(MainButtonArgs &&args) {
|
||||
_textFull = std::move(args.text);
|
||||
setDisabled(!args.isActive);
|
||||
setPointerCursor(false);
|
||||
setCursor(args.isActive ? style::cur_pointer : Qt::ForbiddenCursor);
|
||||
setVisible(args.isVisible);
|
||||
toggleProgress(args.isProgressVisible);
|
||||
update();
|
||||
|
Loading…
x
Reference in New Issue
Block a user