summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
Diffstat (limited to 'src/common')
-rw-r--r--src/common/settings.cpp10
-rw-r--r--src/common/settings.h3
-rw-r--r--src/common/settings_common.cpp10
-rw-r--r--src/common/settings_common.h3
4 files changed, 13 insertions, 13 deletions
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 59d24a053..4c1cd1cac 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -287,4 +287,14 @@ void RestoreGlobalState(bool is_powered_on) {
287 } 287 }
288} 288}
289 289
290static bool configuring_global = true;
291
292bool IsConfiguringGlobal() {
293 return configuring_global;
294}
295
296void SetConfiguringGlobal(bool is_global) {
297 configuring_global = is_global;
298}
299
290} // namespace Settings 300} // namespace Settings
diff --git a/src/common/settings.h b/src/common/settings.h
index 618c34334..655f6468a 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -529,4 +529,7 @@ void UpdateRescalingInfo();
529// Restore the global state of all applicable settings in the Values struct 529// Restore the global state of all applicable settings in the Values struct
530void RestoreGlobalState(bool is_powered_on); 530void RestoreGlobalState(bool is_powered_on);
531 531
532bool IsConfiguringGlobal();
533void SetConfiguringGlobal(bool is_global);
534
532} // namespace Settings 535} // namespace Settings
diff --git a/src/common/settings_common.cpp b/src/common/settings_common.cpp
index 8b666f8b2..1439fb451 100644
--- a/src/common/settings_common.cpp
+++ b/src/common/settings_common.cpp
@@ -52,14 +52,4 @@ const std::string& BasicSetting::GetLabel() const {
52 return label; 52 return label;
53} 53}
54 54
55static bool configuring_global = true;
56
57bool IsConfiguringGlobal() {
58 return configuring_global;
59}
60
61void SetConfiguringGlobal(bool is_global) {
62 configuring_global = is_global;
63}
64
65} // namespace Settings 55} // namespace Settings
diff --git a/src/common/settings_common.h b/src/common/settings_common.h
index ca218e37b..a7630a97f 100644
--- a/src/common/settings_common.h
+++ b/src/common/settings_common.h
@@ -60,9 +60,6 @@ enum Specialization : u8 {
60 Percentage = (1 << SpecializationAttributeOffset), 60 Percentage = (1 << SpecializationAttributeOffset),
61}; 61};
62 62
63bool IsConfiguringGlobal();
64void SetConfiguringGlobal(bool is_global);
65
66class BasicSetting; 63class BasicSetting;
67 64
68class Linkage { 65class Linkage {