Skip to content

Commit

Permalink
fix: 添加pgw判断
Browse files Browse the repository at this point in the history
添加pgw判断

Log: 修复部分已知问题
  • Loading branch information
pengfeixx committed Jun 26, 2023
1 parent 933bc70 commit 29bb88f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/common/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1895,6 +1895,14 @@ void MainWindow::requestAction(ActionFactory::ActionKind actionKind, bool bFromU
// || result.contains("KLVV", Qt::CaseInsensitive)
// || result.contains("L540", Qt::CaseInsensitive);

QProcess process;
process.start("bash", QStringList() << "-c" << "dmidecode | grep -i \"String 4\"");
process.waitForStarted();
process.waitForFinished();
result = process.readAll();
boardVendorFlag = boardVendorFlag || result.contains("PWC30", Qt::CaseInsensitive); //w525
process.close();

int nDelayTime = 0;
if (m_pPlaylist->state() == PlaylistWidget::Opened) {
requestAction(ActionFactory::TogglePlaylist);
Expand Down

0 comments on commit 29bb88f

Please sign in to comment.