gui: make notify respect no_icons setting for listwidget

This commit is contained in:
chelovechishko 2022-04-08 20:12:39 +09:00
parent 4f13ba089c
commit c38156ee82

View File

@ -179,7 +179,12 @@ void UserNotify::update()
}
if (mListItem) {
mListItem->setIcon(getMainIcon(count > 0));
switch (Settings->RshareSettings::getToolButtonStyle()) {
case Qt::ToolButtonTextOnly:
break;
default:
mListItem->setIcon(getMainIcon(count > 0));
}
mListItem->setText((count > 0) ? QString("%1 (%2)").arg(mButtonText).arg(count) : mButtonText);
QFont font = mListItem->font();