Qt: remove unused NotifyBatchedGameActionFinished signal
This commit is contained in:
@@ -2501,13 +2501,11 @@ void game_list_frame::BatchCreateCPUCaches(const std::vector<game_info>& game_da
|
|||||||
if (total == 0)
|
if (total == 0)
|
||||||
{
|
{
|
||||||
QMessageBox::information(this, tr("LLVM Cache Batch Creation"), tr("No titles found"), QMessageBox::Ok);
|
QMessageBox::information(this, tr("LLVM Cache Batch Creation"), tr("No titles found"), QMessageBox::Ok);
|
||||||
Q_EMIT NotifyBatchedGameActionFinished();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_gui_settings->GetBootConfirmation(this))
|
if (!m_gui_settings->GetBootConfirmation(this))
|
||||||
{
|
{
|
||||||
Q_EMIT NotifyBatchedGameActionFinished();
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2531,7 +2529,6 @@ void game_list_frame::BatchCreateCPUCaches(const std::vector<game_info>& game_da
|
|||||||
{
|
{
|
||||||
if (serial.empty())
|
if (serial.empty())
|
||||||
{
|
{
|
||||||
Q_EMIT NotifyBatchedGameActionFinished();
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -96,7 +96,6 @@ Q_SIGNALS:
|
|||||||
void FocusToSearchBar();
|
void FocusToSearchBar();
|
||||||
void Refreshed();
|
void Refreshed();
|
||||||
void RequestSaveStateManager(const game_info& game);
|
void RequestSaveStateManager(const game_info& game);
|
||||||
void NotifyBatchedGameActionFinished();
|
|
||||||
|
|
||||||
public:
|
public:
|
||||||
template <typename KeyType>
|
template <typename KeyType>
|
||||||
|
|||||||
@@ -3392,15 +3392,6 @@ void main_window::CreateConnects()
|
|||||||
connect(ui->mw_searchbar, &QLineEdit::textChanged, m_game_list_frame, &game_list_frame::SetSearchText);
|
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(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::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()
|
void main_window::CreateDockWindows()
|
||||||
|
|||||||
@@ -49,7 +49,6 @@ class main_window : public QMainWindow
|
|||||||
bool m_save_slider_pos = false;
|
bool m_save_slider_pos = false;
|
||||||
bool m_requested_show_logs_on_exit = false;
|
bool m_requested_show_logs_on_exit = false;
|
||||||
int m_other_slider_pos = 0;
|
int m_other_slider_pos = 0;
|
||||||
std::function<void()> m_notify_batch_game_action_cb;
|
|
||||||
|
|
||||||
QIcon m_app_icon;
|
QIcon m_app_icon;
|
||||||
QIcon m_icon_play;
|
QIcon m_icon_play;
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ private:
|
|||||||
void update_info(QLabel* installation_info, QDialogButtonBox* buttons) const;
|
void update_info(QLabel* installation_info, QDialogButtonBox* buttons) const;
|
||||||
void move_item(int offset) const;
|
void move_item(int offset) const;
|
||||||
|
|
||||||
QListWidget* m_dir_list;
|
QListWidget* m_dir_list = nullptr;
|
||||||
bool m_precompile_caches = false;
|
bool m_precompile_caches = false;
|
||||||
bool m_create_desktop_shortcuts = false;
|
bool m_create_desktop_shortcuts = false;
|
||||||
bool m_create_app_shortcut = false;
|
bool m_create_app_shortcut = false;
|
||||||
|
|||||||
Reference in New Issue
Block a user