Check "Select all" checkbox if all options are already selected

+ code cleanup

Signed-off-by: Marcelo Hernandez <marcelohdez.inq@gmail.com>
This commit is contained in:
Marcelo Hernandez
2022-10-23 00:25:38 -04:00
parent 15593b5c09
commit 4caf06bc99
4 changed files with 65 additions and 101 deletions

View File

@ -6,16 +6,15 @@
#define LAUNCHER_INSTANCECOPYPREFS_H
struct InstanceCopyPrefs {
explicit InstanceCopyPrefs(bool setAll);
~InstanceCopyPrefs() = default;
bool copySaves = true;
bool keepPlaytime = true;
bool copyGameOptions = true;
bool copyResourcePacks = true;
bool copyShaderPacks = true;
bool copyServers = true;
bool copyMods = true;
bool copySaves;
bool keepPlaytime;
bool copyGameOptions;
bool copyResourcePacks;
bool copyShaderPacks;
bool copyServers;
bool copyMods;
bool allTrue() const;
};
#endif // LAUNCHER_INSTANCECOPYPREFS_H