live refresh
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
e0134678cd
commit
23bbd9585b
|
|
@ -87,6 +87,9 @@ ConfigurePerGame::ConfigurePerGame(QWidget* parent, u64 title_id_, const std::st
|
|||
|
||||
addons_tab->SetTitleId(title_id);
|
||||
|
||||
connect(addons_tab.get(), &ConfigurePerGameAddons::RefreshGameList, this,
|
||||
&ConfigurePerGame::RefreshGameList);
|
||||
|
||||
scene = new QGraphicsScene;
|
||||
ui->icon_view->setScene(scene);
|
||||
|
||||
|
|
|
|||
|
|
@ -64,6 +64,9 @@ public:
|
|||
|
||||
void LoadFromFile(FileSys::VirtualFile file_);
|
||||
|
||||
signals:
|
||||
void RefreshGameList();
|
||||
|
||||
private:
|
||||
void changeEvent(QEvent* event) override;
|
||||
void RetranslateUI();
|
||||
|
|
|
|||
|
|
@ -119,6 +119,7 @@ void ConfigurePerGameAddons::InstallModFolder() {
|
|||
QtCommon::Frontend::Information(tr("Mod Installed"), tr("Mod was successfully installed."));
|
||||
item_model->removeRows(0, item_model->rowCount());
|
||||
list_items.clear();
|
||||
emit RefreshGameList();
|
||||
LoadConfiguration();
|
||||
break;
|
||||
case FrontendCommon::Failed:
|
||||
|
|
@ -148,6 +149,7 @@ void ConfigurePerGameAddons::InstallModZip() {
|
|||
QtCommon::Frontend::Information(tr("Mod Installed"), tr("Mod was successfully installed."));
|
||||
item_model->removeRows(0, item_model->rowCount());
|
||||
list_items.clear();
|
||||
emit RefreshGameList();
|
||||
LoadConfiguration();
|
||||
break;
|
||||
case FrontendCommon::Failed:
|
||||
|
|
|
|||
|
|
@ -42,6 +42,10 @@ public:
|
|||
public slots:
|
||||
void InstallModFolder();
|
||||
void InstallModZip();
|
||||
|
||||
signals:
|
||||
void RefreshGameList();
|
||||
|
||||
private:
|
||||
void changeEvent(QEvent* event) override;
|
||||
void RetranslateUI();
|
||||
|
|
|
|||
|
|
@ -3656,6 +3656,8 @@ void MainWindow::OpenPerGameConfiguration(u64 title_id, const std::string& file_
|
|||
Settings::SetConfiguringGlobal(false);
|
||||
ConfigurePerGame dialog(this, title_id, file_name, vk_device_records, *QtCommon::system);
|
||||
dialog.LoadFromFile(v_file);
|
||||
|
||||
connect(&dialog, &ConfigurePerGame::RefreshGameList, this, &MainWindow::OnGameListRefresh);
|
||||
const auto result = dialog.exec();
|
||||
|
||||
if (result != QDialog::Accepted && !UISettings::values.configuration_applied) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue