Add text in Sync button to indicate Sync mode

This commit is contained in:
Ryan Tang 2024-04-08 13:57:31 -04:00
parent e95e45a5d6
commit db35119a56

View File

@ -117,7 +117,7 @@ MainWindow::MainWindow(QWidget *parent) : QMainWindow(parent){
bnSOLSettings->setEnabled(false);
connect(bnSOLSettings, &QPushButton::clicked, this, &MainWindow::OpenSOLARISpanel);
bnSyncHelper = new QPushButton("Sync Helper", this);
bnSyncHelper = new QPushButton("Sync Helper (Not Set)", this);
bnSyncHelper->setEnabled(false);
connect(bnSyncHelper, &QPushButton::clicked, this, &MainWindow::OpenSyncHelper);
@ -870,6 +870,8 @@ void MainWindow::OpenSyncHelper(){
if( digiSetting ) digiSetting->UpdatePanelFromMemory();
bnSyncHelper->setText("Sync Helper (No Sync)");
dialog.accept();
});
@ -888,6 +890,8 @@ void MainWindow::OpenSyncHelper(){
if( digiSetting ) digiSetting->UpdatePanelFromMemory();
bnSyncHelper->setText("Sync Helper (Software)");
dialog.accept();
});