summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-11-01 19:29:11 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-11-01 19:29:11 +0300
commit785527c5313f64f763f5e572e86dd2d0bb6ff5a0 (patch)
tree5b4652f4ab26131363b5efab9204e43a46852efe /src/core
parent571ed0f6ac1083b5e5f2f4dee8357ae661555b9c (diff)
code cleaning
Diffstat (limited to 'src/core')
-rw-r--r--src/core/stdautoaway/src/main.cpp22
-rw-r--r--src/core/stdautoaway/src/options.cpp4
-rw-r--r--src/core/stdautoaway/src/stdafx.h8
3 files changed, 17 insertions, 17 deletions
diff --git a/src/core/stdautoaway/src/main.cpp b/src/core/stdautoaway/src/main.cpp
index 1022f2a4d5..2d3278b47f 100644
--- a/src/core/stdautoaway/src/main.cpp
+++ b/src/core/stdautoaway/src/main.cpp
@@ -42,17 +42,17 @@ PLUGININFOEX pluginInfoEx = {
CMPlugin::CMPlugin() :
PLUGIN<CMPlugin>(MODULENAME, pluginInfoEx),
- bIdleCheck(IDLENAME, "UserIdleCheck", 0),
- bIdleMethod(IDLENAME, "IdleMethod", 0),
- bIdleOnSaver(IDLENAME, "IdleOnSaver", 0),
- bIdleOnFullScr(IDLENAME, "IdleOnFullScr", 0),
- bIdleOnLock(IDLENAME, "IdleOnLock", 0),
- bIdlePrivate(IDLENAME, "IdlePrivate", 0),
- bIdleSoundsOff(IDLENAME, "IdleSoundsOff", 1),
- bIdleOnTerminal(IDLENAME, "IdleOnTerminalDisconnect", 0),
- bIdleStatusLock(IDLENAME, "IdleStatusLock", 0),
- bAAEnable(IDLENAME, "AAEnable", 0),
- bAAStatus(IDLENAME, "AAStatus", 0),
+ bIdleCheck(IDLENAME, "UserIdleCheck", false),
+ bIdleMethod(IDLENAME, "IdleMethod", false),
+ bIdleOnSaver(IDLENAME, "IdleOnSaver", false),
+ bIdleOnFullScr(IDLENAME, "IdleOnFullScr", false),
+ bIdleOnLock(IDLENAME, "IdleOnLock", false),
+ bIdlePrivate(IDLENAME, "IdlePrivate", false),
+ bIdleSoundsOff(IDLENAME, "IdleSoundsOff", true),
+ bIdleOnTerminal(IDLENAME, "IdleOnTerminalDisconnect", false),
+ bIdleStatusLock(IDLENAME, "IdleStatusLock", false),
+ bAAEnable(IDLENAME, "AAEnable", false),
+ iAAStatus(IDLENAME, "AAStatus", 0),
iIdleTime1st(IDLENAME, "IdleTime1st", 10)
{
}
diff --git a/src/core/stdautoaway/src/options.cpp b/src/core/stdautoaway/src/options.cpp
index fed12a11f8..76d2d98605 100644
--- a/src/core/stdautoaway/src/options.cpp
+++ b/src/core/stdautoaway/src/options.cpp
@@ -95,7 +95,7 @@ public:
for (auto &it : aa_Status)
cmbAAStatus.AddString(Clist_GetStatusModeDescription(it, 0));
- cmbAAStatus.SetCurSel(IdleGetStatusIndex(g_plugin.bAAStatus));
+ cmbAAStatus.SetCurSel(IdleGetStatusIndex(g_plugin.iAAStatus));
ShowHide();
return true;
@@ -107,7 +107,7 @@ public:
int curSel = cmbAAStatus.GetCurSel();
if (curSel != CB_ERR)
- g_plugin.bAAStatus = aa_Status[curSel];
+ g_plugin.iAAStatus = aa_Status[curSel];
// destroy any current idle and reset settings.
IdleObject_Destroy();
diff --git a/src/core/stdautoaway/src/stdafx.h b/src/core/stdautoaway/src/stdafx.h
index aed3748da5..04aa4cad33 100644
--- a/src/core/stdautoaway/src/stdafx.h
+++ b/src/core/stdautoaway/src/stdafx.h
@@ -76,10 +76,10 @@ struct CMPlugin : public PLUGIN<CMPlugin>
int Load() override;
int Unload() override;
- CMOption<uint8_t> bIdleCheck, bIdleMethod, bIdleOnSaver, bIdleOnFullScr, bIdleOnLock;
- CMOption<uint8_t> bIdlePrivate, bIdleSoundsOff, bIdleOnTerminal, bIdleStatusLock;
- CMOption<uint8_t> bAAEnable;
- CMOption<uint16_t> bAAStatus;
+ CMOption<bool> bIdleCheck, bIdleMethod, bIdleOnSaver, bIdleOnFullScr, bIdleOnLock;
+ CMOption<bool> bIdlePrivate, bIdleSoundsOff, bIdleOnTerminal, bIdleStatusLock;
+ CMOption<bool> bAAEnable;
+ CMOption<uint16_t> iAAStatus;
CMOption<uint32_t> iIdleTime1st;
};