mirror of
https://github.com/PCSX2/pcsx2.git
synced 2025-12-16 04:08:48 +00:00
Qt: Grey out game grid related actions under 'View' menu if showing game list
Some checks failed
🐧 Linux Builds / AppImage (push) Has been cancelled
🐧 Linux Builds / Flatpak (push) Has been cancelled
🍎 MacOS Builds / Defaults (push) Has been cancelled
🖥️ Windows Builds / Lint VS Project Files (push) Has been cancelled
🖥️ Windows Builds / CMake (push) Has been cancelled
🖥️ Windows Builds / SSE4 (push) Has been cancelled
🖥️ Windows Builds / AVX2 (push) Has been cancelled
🏭 Update Controller Database / update-controller-db (push) Has been cancelled
Some checks failed
🐧 Linux Builds / AppImage (push) Has been cancelled
🐧 Linux Builds / Flatpak (push) Has been cancelled
🍎 MacOS Builds / Defaults (push) Has been cancelled
🖥️ Windows Builds / Lint VS Project Files (push) Has been cancelled
🖥️ Windows Builds / CMake (push) Has been cancelled
🖥️ Windows Builds / SSE4 (push) Has been cancelled
🖥️ Windows Builds / AVX2 (push) Has been cancelled
🏭 Update Controller Database / update-controller-db (push) Has been cancelled
This commit is contained in:
parent
1391e1339e
commit
33ab6fd09b
@ -219,6 +219,9 @@ void MainWindow::setupAdditionalUi()
|
|||||||
m_ui.actionViewStatusBar->setChecked(status_bar_visible);
|
m_ui.actionViewStatusBar->setChecked(status_bar_visible);
|
||||||
m_ui.statusBar->setVisible(status_bar_visible);
|
m_ui.statusBar->setVisible(status_bar_visible);
|
||||||
|
|
||||||
|
const bool show_game_grid = Host::GetBaseBoolSettingValue("UI", "GameListGridView", false);
|
||||||
|
updateGameGridActions(show_game_grid);
|
||||||
|
|
||||||
m_game_list_widget = new GameListWidget(getContentParent());
|
m_game_list_widget = new GameListWidget(getContentParent());
|
||||||
m_game_list_widget->initialize();
|
m_game_list_widget->initialize();
|
||||||
m_ui.actionGridViewShowTitles->setChecked(m_game_list_widget->getShowGridCoverTitles());
|
m_ui.actionGridViewShowTitles->setChecked(m_game_list_widget->getShowGridCoverTitles());
|
||||||
@ -390,6 +393,7 @@ void MainWindow::connectSignals()
|
|||||||
connect(m_game_list_widget, &GameListWidget::layoutChange, this, [this]() {
|
connect(m_game_list_widget, &GameListWidget::layoutChange, this, [this]() {
|
||||||
QSignalBlocker sb(m_ui.actionGridViewShowTitles);
|
QSignalBlocker sb(m_ui.actionGridViewShowTitles);
|
||||||
m_ui.actionGridViewShowTitles->setChecked(m_game_list_widget->getShowGridCoverTitles());
|
m_ui.actionGridViewShowTitles->setChecked(m_game_list_widget->getShowGridCoverTitles());
|
||||||
|
updateGameGridActions(m_game_list_widget->isShowingGameGrid());
|
||||||
});
|
});
|
||||||
|
|
||||||
SettingWidgetBinder::BindWidgetToBoolSetting(nullptr, m_ui.actionViewStatusBarVerbose, "UI", "VerboseStatusBar", false);
|
SettingWidgetBinder::BindWidgetToBoolSetting(nullptr, m_ui.actionViewStatusBarVerbose, "UI", "VerboseStatusBar", false);
|
||||||
@ -3145,6 +3149,14 @@ void MainWindow::updateGameDependentActions()
|
|||||||
m_ui.actionReloadPatches->setEnabled(s_vm_valid);
|
m_ui.actionReloadPatches->setEnabled(s_vm_valid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainWindow::updateGameGridActions(const bool show_game_grid)
|
||||||
|
{
|
||||||
|
m_ui.actionGridViewShowTitles->setEnabled(show_game_grid);
|
||||||
|
m_ui.actionGridViewZoomIn->setEnabled(show_game_grid);
|
||||||
|
m_ui.actionGridViewZoomOut->setEnabled(show_game_grid);
|
||||||
|
m_ui.actionGridViewRefreshCovers->setEnabled(show_game_grid);
|
||||||
|
}
|
||||||
|
|
||||||
void MainWindow::doStartFile(std::optional<CDVD_SourceType> source, const QString& path)
|
void MainWindow::doStartFile(std::optional<CDVD_SourceType> source, const QString& path)
|
||||||
{
|
{
|
||||||
if (s_vm_valid)
|
if (s_vm_valid)
|
||||||
|
|||||||
@ -234,6 +234,7 @@ private:
|
|||||||
void updateEmulationActions(bool starting, bool running, bool stopping);
|
void updateEmulationActions(bool starting, bool running, bool stopping);
|
||||||
void updateDisplayRelatedActions(bool has_surface, bool render_to_main, bool fullscreen);
|
void updateDisplayRelatedActions(bool has_surface, bool render_to_main, bool fullscreen);
|
||||||
void updateGameDependentActions();
|
void updateGameDependentActions();
|
||||||
|
void updateGameGridActions(const bool show_game_grid);
|
||||||
void updateStatusBarWidgetVisibility();
|
void updateStatusBarWidgetVisibility();
|
||||||
void updateAdvancedSettingsVisibility();
|
void updateAdvancedSettingsVisibility();
|
||||||
void updateWindowTitle();
|
void updateWindowTitle();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user