diff --git a/LedOK/mainwindow.cpp b/LedOK/mainwindow.cpp index c1640b4..62519df 100644 --- a/LedOK/mainwindow.cpp +++ b/LedOK/mainwindow.cpp @@ -228,6 +228,7 @@ MainWindow::MainWindow(QWidget *parent) : BaseWin(parent) { auto url = updates["url"].toString(); auto idx = url.lastIndexOf('.'); if(idx!=-1) filePath += url.midRef(idx); + qDebug()<<"filePath"<addAction(act_update); @@ -278,7 +279,8 @@ MainWindow::MainWindow(QWidget *parent) : BaseWin(parent) { } #ifdef Q_OS_WIN updates = json["win"].toObject(); -#elif Q_OS_MAC +#endif +#ifdef Q_OS_MAC updates = json["mac"].toObject(); #endif if(verCompare(updates["ver"].toString(), APP_VERSION) > 0) {