Skip to content

Commit

Permalink
Add explicit note about lack of Auto Profile in settings
Browse files Browse the repository at this point in the history
  • Loading branch information
pktiuk committed Dec 21, 2021
1 parent 578d1a4 commit 1cb67c7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/gui/mainsettingsdialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,9 @@ MainSettingsDialog::MainSettingsDialog(AntiMicroSettings *settings, QList<InputD
{
delete ui->categoriesListWidget->item(3);
ui->stackedWidget->removeWidget(ui->autoProfileSettingsPage);
ui->categoriesListWidget->addItem(tr("AutoProfile (disabled in Wayland)"));
auto item = ui->categoriesListWidget->item(ui->categoriesListWidget->count() - 1);
item->setFlags(item->flags() & ~Qt::ItemIsEnabled);
}
#elif !defined(WITH_X11) && defined(Q_OS_UNIX)
delete ui->categoriesListWidget->item(3);
Expand Down

0 comments on commit 1cb67c7

Please sign in to comment.