mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +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) {
|
void Panel::Button::updateArgs(MainButtonArgs &&args) {
|
||||||
_textFull = std::move(args.text);
|
_textFull = std::move(args.text);
|
||||||
setDisabled(!args.isActive);
|
setDisabled(!args.isActive);
|
||||||
|
setPointerCursor(false);
|
||||||
|
setCursor(args.isActive ? style::cur_pointer : Qt::ForbiddenCursor);
|
||||||
setVisible(args.isVisible);
|
setVisible(args.isVisible);
|
||||||
toggleProgress(args.isProgressVisible);
|
toggleProgress(args.isProgressVisible);
|
||||||
update();
|
update();
|
||||||
|
Reference in New Issue
Block a user