Qt: remove unused NotifyBatchedGameActionFinished signal

This commit is contained in:
Megamouse 2025-12-07 13:05:15 +01:00
parent 5f6cd564ce
commit 56461f9a36
5 changed files with 1 additions and 15 deletions

View File

@ -2501,13 +2501,11 @@ void game_list_frame::BatchCreateCPUCaches(const std::vector<game_info>& game_da
if (total == 0)
{
QMessageBox::information(this, tr("LLVM Cache Batch Creation"), tr("No titles found"), QMessageBox::Ok);
Q_EMIT NotifyBatchedGameActionFinished();
return;
}
if (!m_gui_settings->GetBootConfirmation(this))
{
Q_EMIT NotifyBatchedGameActionFinished();
return;
}
@ -2531,7 +2529,6 @@ void game_list_frame::BatchCreateCPUCaches(const std::vector<game_info>& game_da
{
if (serial.empty())
{
Q_EMIT NotifyBatchedGameActionFinished();
return false;
}

View File

@ -96,7 +96,6 @@ Q_SIGNALS:
void FocusToSearchBar();
void Refreshed();
void RequestSaveStateManager(const game_info& game);
void NotifyBatchedGameActionFinished();
public:
template <typename KeyType>

View File

@ -3379,15 +3379,6 @@ void main_window::CreateConnects()
connect(ui->mw_searchbar, &QLineEdit::textChanged, m_game_list_frame, &game_list_frame::SetSearchText);
connect(ui->mw_searchbar, &QLineEdit::returnPressed, m_game_list_frame, &game_list_frame::FocusAndSelectFirstEntryIfNoneIs);
connect(m_game_list_frame, &game_list_frame::FocusToSearchBar, this, [this]() { ui->mw_searchbar->setFocus(); });
connect(m_game_list_frame, &game_list_frame::NotifyBatchedGameActionFinished, this, [this]() mutable
{
if (m_notify_batch_game_action_cb)
{
m_notify_batch_game_action_cb();
m_notify_batch_game_action_cb = {};
}
});
}
void main_window::CreateDockWindows()

View File

@ -49,7 +49,6 @@ class main_window : public QMainWindow
bool m_save_slider_pos = false;
bool m_requested_show_logs_on_exit = false;
int m_other_slider_pos = 0;
std::function<void()> m_notify_batch_game_action_cb;
QIcon m_app_icon;
QIcon m_icon_play;

View File

@ -27,7 +27,7 @@ private:
void update_info(QLabel* installation_info, QDialogButtonBox* buttons) const;
void move_item(int offset) const;
QListWidget* m_dir_list;
QListWidget* m_dir_list = nullptr;
bool m_precompile_caches = false;
bool m_create_desktop_shortcuts = false;
bool m_create_app_shortcut = false;