From c1bad4357ac90de0dc25f2d4fb3ae7f9dbe138b6 Mon Sep 17 00:00:00 2001 From: lat9nq <22451773+lat9nq@users.noreply.github.com> Date: Mon, 17 May 2021 16:13:39 -0400 Subject: yuzu qt: Add an Apply button to configuration dialogs Most of the code already exists to do this, but the Apply button itself was never added. This adds a button and boolean that tells yuzu to save the configuration after applying settings, even if close/Cancel is pressed on the dialog. Changes after applying will not be saved when Cancel is pressed, though. --- src/yuzu/configuration/configure_per_game.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/yuzu/configuration/configure_per_game.h') diff --git a/src/yuzu/configuration/configure_per_game.h b/src/yuzu/configuration/configure_per_game.h index 5f9a08cef..f6e6ab7c4 100644 --- a/src/yuzu/configuration/configure_per_game.h +++ b/src/yuzu/configuration/configure_per_game.h @@ -39,6 +39,8 @@ private: void changeEvent(QEvent* event) override; void RetranslateUI(); + void HandleApplyButtonClicked(); + void LoadConfiguration(); std::unique_ptr ui; -- cgit v1.2.3