It would be cool if there was an option in Bitcoin Core for disabling the system tray entirely.

{
    ui->okButton->setEnabled(fState);
}
void OptionsDialog::on_resetButton_clicked()
{
    if(model)
    {
        
        QMessageBox::StandardButton btnRetVal = QMessageBox::question(this, tr("Confirm options reset"),
            tr("Client restart required to activate changes.") + "<br><br>" + tr("Client will be shut down. Do you want to proceed?"),
            QMessageBox::Yes | QMessageBox::Cancel, QMessageBox::Cancel);
        if(btnRetVal == QMessageBox::Cancel)
            return;
        
        model->Reset();
        QApplication::quit();
    }
}
void OptionsDialog::on_okButton_clicked()