This commit is contained in:
faith 2024-12-13 17:25:49 +08:00
parent 25aef249c4
commit 24bfc41341
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@ bool CompatibilityInfoClass::LoadCompatibilityFile() {
QFileInfo check_file(m_compatibility_filename); QFileInfo check_file(m_compatibility_filename);
const auto modified_delta = QDateTime::currentDateTime() - check_file.lastModified(); const auto modified_delta = QDateTime::currentDateTime() - check_file.lastModified();
if (!check_file.exists() || if (!check_file.exists() ||
!check_file.isFile() && !check_file.isFile() ||
std::chrono::duration_cast<std::chrono::minutes>(modified_delta).count() > 60) { std::chrono::duration_cast<std::chrono::minutes>(modified_delta).count() > 60) {
return false; return false;
} }

View File

@ -75,7 +75,7 @@ GameListFrame::GameListFrame(std::shared_ptr<GameInfoClass> game_info_get,
m_gui_context_menus.RequestGameMenu(pos, m_game_info->m_games, this, true); m_gui_context_menus.RequestGameMenu(pos, m_game_info->m_games, this, true);
}); });
connect(this, &QTableWidget::cellClicked, this, [=](int row, int column) { connect(this, &QTableWidget::cellClicked, this, [=, this](int row, int column) {
if (column == 2 && !m_game_info->m_games[row].compatibility.url.isEmpty()) { if (column == 2 && !m_game_info->m_games[row].compatibility.url.isEmpty()) {
QDesktopServices::openUrl(QUrl(m_game_info->m_games[row].compatibility.url)); QDesktopServices::openUrl(QUrl(m_game_info->m_games[row].compatibility.url));
} }