mirror of https://gitlab.com/basile.b/dexed.git
added option to clear previous redirected messages
for example this avoids to accumulate dscanner -S results after each call
This commit is contained in:
parent
8478e3f040
commit
29fe166257
|
@ -20,6 +20,7 @@ type
|
|||
fParameters: TStringList;
|
||||
fToolAlias: string;
|
||||
fQueryParams: boolean;
|
||||
fClearMessages: boolean;
|
||||
fChainBefore: TStringList;
|
||||
fChainAfter: TStringList;
|
||||
fShortcut: TShortcut;
|
||||
|
@ -37,6 +38,7 @@ type
|
|||
property parameters: TStringList read fParameters write setParameters;
|
||||
property showWindows: TShowWindowOptions read fShowWin write fShowWin;
|
||||
property queryParameters: boolean read fQueryParams write fQueryParams;
|
||||
property clearMessages: boolean read fClearMessages write fClearMessages;
|
||||
property chainBefore: TStringList read fChainBefore write setchainBefore;
|
||||
property chainAfter: TStringList read fChainAfter write setChainAfter;
|
||||
property shortcut: TShortcut read fShortcut write fShortcut;
|
||||
|
@ -135,6 +137,9 @@ var
|
|||
begin
|
||||
killProcess(fProcess);
|
||||
//
|
||||
if fClearMessages then
|
||||
getMessageDisplay(fMsgs).clearByContext(amcMisc);
|
||||
//
|
||||
fProcess := TCheckedAsyncProcess.Create(nil);
|
||||
fProcess.OnReadData:= @processOutput;
|
||||
fProcess.OnTerminate:= @processOutput;
|
||||
|
|
Loading…
Reference in New Issue