MCPcopy Create free account
hub / github.com/IJHack/QtPass / updateOtpButtonVisibility

Method updateOtpButtonVisibility

src/mainwindow.cpp:1536–1545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1534}
1535
1536void 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
1547void MainWindow::updateGrepButtonVisibility() {
1548 const bool enabled = QtPassSettings::isUseGrepSearch();

Callers

nothing calls this directly

Calls 1

setVisibleMethod · 0.80

Tested by

no test coverage detected