@@ -387,7 +387,7 @@ MainWindow::MainWindow(WSClient *client, DbMasterController *mc, QWidget *parent
387387
388388 ui->comboBoxDelayBefUnlockLogin ->addItem (" 100" , 10 );
389389 ui->comboBoxDelayBefUnlockLogin ->addItem (" 250" , 25 );
390- ui->comboBoxDelayBefUnlockLogin ->addItem (" 500 " , 50 );
390+ ui->comboBoxDelayBefUnlockLogin ->addItem (" 600 " , 60 );
391391 ui->comboBoxDelayBefUnlockLogin ->addItem (" 1000" , 100 );
392392 ui->comboBoxDelayBefUnlockLogin ->addItem (" 1500" , 150 );
393393 ui->comboBoxDelayBefUnlockLogin ->addItem (" 2000" , 200 );
@@ -625,6 +625,8 @@ MainWindow::MainWindow(WSClient *client, DbMasterController *mc, QWidget *parent
625625 m_keyboardUsbLayoutActualValue = m_keyboardUsbLayoutOrigValue;
626626 ui->checkBoxEnforceUSBLayout ->setChecked (m_keyboardUsbLayoutOrigValue);
627627
628+ connect (wsClient, &WSClient::bleNameChanged, this , &MainWindow::onBleNameChanged);
629+
628630 wsClient->settingsHelper ()->setMainWindow (this );
629631#ifdef Q_OS_WIN
630632 const auto keyboardLayoutWidth = 150 ;
@@ -820,6 +822,12 @@ void MainWindow::updateBackupControlsVisibility(bool visible)
820822 ui->toolButton_setBackupFilePath ->setVisible (visible);
821823}
822824
825+ void MainWindow::displayBLENameChangedDialog ()
826+ {
827+ QMessageBox::information (this , tr (" Device Bluetooth Name Changed" ),
828+ tr (" Please disable and re-enable bluetooth for your changes to take effect" ));
829+ }
830+
823831void MainWindow::updatePage ()
824832{
825833 const auto status = wsClient->get_status ();
@@ -2149,6 +2157,7 @@ void MainWindow::onDeviceConnected()
21492157 }
21502158 wsClient->sendUserSettingsRequest ();
21512159 wsClient->sendBatteryRequest ();
2160+ wsClient->sendBleNameRequest ();
21522161 }
21532162 displayBundleVersion ();
21542163 updateDeviceDependentUI ();
@@ -2374,3 +2383,16 @@ void MainWindow::setCurrentCategoryOptions(const QString &cat1, const QString &c
23742383 ui->comboBoxBleCurrentCategory ->setCurrentIndex (s.value (" settings/enforced_category" , 0 ).toInt ());
23752384 ui->comboBoxBleCurrentCategory ->blockSignals (false );
23762385}
2386+
2387+ void MainWindow::on_lineEditBleName_textEdited (const QString &arg1)
2388+ {
2389+ m_bleNameActual = arg1;
2390+ }
2391+
2392+ void MainWindow::onBleNameChanged (const QString &name)
2393+ {
2394+ m_bleNameActual = name;
2395+ m_bleNameOriginal = name;
2396+ ui->lineEditBleName ->setText (name);
2397+ checkSettingsChanged ();
2398+ }
0 commit comments