Skip to content

Commit

Permalink
Added disabled devices vector/set to savable settings
Browse files Browse the repository at this point in the history
  • Loading branch information
KimihikoAkayasaki committed Oct 2, 2022
1 parent eeae8ee commit ba96ade
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Amethyst/K2AppTracker.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
#include <cereal/access.hpp>
#include <cereal/types/vector.hpp>
#include <cereal/types/map.hpp>
#include <cereal/types/set.hpp>
#include <cereal/types/tuple.hpp>
#include <cereal/types/polymorphic.hpp>
#include <cereal/types/utility.hpp>
Expand Down
6 changes: 6 additions & 0 deletions Amethyst/K2Settings.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,9 @@ namespace k2app
// Already shown toasts vector
std::vector<std::wstring> shownToastsGuidVector;

// Disabled (by the user) devices set
std::set<std::wstring> disabledDevicesGuidSet;

// If the first-launch guide's been shown
bool firstTimeTourShown = false;

Expand Down Expand Up @@ -142,6 +145,7 @@ namespace k2app
CEREAL_NVP(forceSkeletonPreview),
CEREAL_NVP(freezeLowerOnly),
CEREAL_NVP(shownToastsGuidVector),
CEREAL_NVP(disabledDevicesGuidSet),
CEREAL_NVP(teachingTipShown_Freeze),
CEREAL_NVP(teachingTipShown_Flip),
CEREAL_NVP(firstTimeTourShown),
Expand Down Expand Up @@ -199,6 +203,7 @@ namespace k2app
CEREAL_NVP(forceSkeletonPreview),
CEREAL_NVP(freezeLowerOnly),
CEREAL_NVP(shownToastsGuidVector),
CEREAL_NVP(disabledDevicesGuidSet),
CEREAL_NVP(teachingTipShown_Freeze),
CEREAL_NVP(teachingTipShown_Flip),
CEREAL_NVP(firstTimeTourShown),
Expand Down Expand Up @@ -389,6 +394,7 @@ namespace k2app
forceSkeletonPreview == other.forceSkeletonPreview &&
freezeLowerOnly == other.freezeLowerOnly &&
shownToastsGuidVector == other.shownToastsGuidVector &&
disabledDevicesGuidSet == other.disabledDevicesGuidSet &&
teachingTipShown_Freeze == other.teachingTipShown_Freeze &&
teachingTipShown_Flip == other.teachingTipShown_Flip &&
firstTimeTourShown == other.firstTimeTourShown &&
Expand Down

0 comments on commit ba96ade

Please sign in to comment.