| 1534 | } |
| 1535 | |
| 1536 | void MainWindow::updateOtpButtonVisibility() { |
| 1537 | #if defined(Q_OS_WIN) || defined(__APPLE__) |
| 1538 | ui->actionOtp->setVisible(false); |
| 1539 | #endif |
| 1540 | if (!QtPassSettings::isUseOtp()) { |
| 1541 | ui->actionOtp->setEnabled(false); |
| 1542 | } else { |
| 1543 | ui->actionOtp->setEnabled(true); |
| 1544 | } |
| 1545 | } |
| 1546 | |
| 1547 | void MainWindow::updateGrepButtonVisibility() { |
| 1548 | const bool enabled = QtPassSettings::isUseGrepSearch(); |
nothing calls this directly
no test coverage detected