mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Show forbidden icon on disabled webview button.
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user