summaryrefslogtreecommitdiff
path: root/plugins/Actman/lowlevelc.pas
diff options
context:
space:
mode:
authorAlexey Kulakov <panda75@bk.ru>2014-12-21 20:36:45 +0000
committerAlexey Kulakov <panda75@bk.ru>2014-12-21 20:36:45 +0000
commita26b59b904144f95f87bd5926787dba0568a4c5b (patch)
treed350f9eb60de7e7578e5bb07537104ee325c7f52 /plugins/Actman/lowlevelc.pas
parentb0d8e624a131040cdc4bf2cd305ebe8c20ad4ab1 (diff)
Actman: "Single instance" default (for every new macro) flag introduced
Small options GUI logic changes git-svn-id: http://svn.miranda-ng.org/main/trunk@11564 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Actman/lowlevelc.pas')
-rw-r--r--plugins/Actman/lowlevelc.pas16
1 files changed, 9 insertions, 7 deletions
diff --git a/plugins/Actman/lowlevelc.pas b/plugins/Actman/lowlevelc.pas
index fe6d9bde31..64018f7b18 100644
--- a/plugins/Actman/lowlevelc.pas
+++ b/plugins/Actman/lowlevelc.pas
@@ -8,12 +8,14 @@ uses
// Macro flags
const
- ACF_ASSIGNED = $80000000; // macro assigned
- ACF_FIRSTRUN = $40000000; // FirstRun flag
- ACF_USEDNOW = $20000000; // macro in use (reserved)
- ACF_VOLATILE = $10000000; // don't save in DB
+ ACF_ASSIGNED = $80000000; // macro assigned
+ ACF_FIRSTRUN = $40000000; // FirstRun flag
+ ACF_USEDNOW = $20000000; // macro in use (reserved)
+ ACF_VOLATILE = $10000000; // don't save in DB
+ ACF_SINGLEINST = $08000000; // Single macro instance
- ACF_TOSAVE = ACF_ASSIGNED or ACF_FIRSTRUN;
+ ACF_TOSAVE = ACF_ASSIGNED or ACF_FIRSTRUN or ACF_SINGLEINST;
+ ACF_MACROFLAG = $FF000000;
type
pActionList = ^tActionList;
@@ -264,8 +266,8 @@ begin
begin
StrCopyW(descr,NoDescription,MacroNameLen-1);
QueryPerformanceCounter(tmp);
- id :=tmp and $FFFFFFFF;
- flags :=ACF_ASSIGNED;
+ id :=tmp and $FFFFFFFF;
+ flags:=ACF_ASSIGNED or ACF_SINGLEINST;
end;
end;