Skip to content

Commit

Permalink
Mark autoprofile as disabled in Wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
pktiuk committed Dec 21, 2021
1 parent 26aced5 commit 1e3420a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/gui/mainsettingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,10 @@ MainSettingsDialog::MainSettingsDialog(AntiMicroSettings *settings, QList<InputD
fillGUIDComboBox();
} else
{
delete ui->categoriesListWidget->item(2);
// mark Autoprofile as Disabled
auto item = ui->categoriesListWidget->item(2);
item->setFlags(item->flags() & ~Qt::ItemIsEnabled);
item->setText(item->text() + tr(" (disabled for Wayland)"));
ui->stackedWidget->removeWidget(ui->autoProfileSettingsPage);
}
#elif !defined(WITH_X11) && defined(Q_OS_UNIX)
Expand Down

0 comments on commit 1e3420a

Please sign in to comment.