Moved UI variables to config.py file.

This commit is contained in:
David Maisonave
2024-08-05 20:46:12 -04:00
parent 9b239e0ec1
commit 1959939db3
3 changed files with 7 additions and 12 deletions

View File

@@ -26,8 +26,6 @@ parse_args = parser.parse_args()
settings = {
"recursiveDisabled": False,
"runCleanAfterDelete": False,
"scanModified": False,
"zzdebugTracing": False,
"zzdryRun": False,
}
@@ -46,8 +44,8 @@ shouldUpdate = False
TargetPaths = []
RECURSIVE = plugin.pluginSettings["recursiveDisabled"] == False
SCAN_MODIFIED = plugin.pluginSettings["scanModified"]
RUN_CLEAN_AFTER_DELETE = plugin.pluginSettings["runCleanAfterDelete"]
SCAN_MODIFIED = plugin.pluginConfig["scanModified"]
RUN_CLEAN_AFTER_DELETE = plugin.pluginConfig["runCleanAfterDelete"]
RUN_GENERATE_CONTENT = plugin.pluginConfig['runGenerateContent']
SCAN_ON_ANY_EVENT = plugin.pluginConfig['onAnyEvent']
SIGNAL_TIMEOUT = plugin.pluginConfig['timeOut']

View File

@@ -7,14 +7,6 @@ settings:
displayName: No Recursive
description: Enable stop monitoring paths recursively.
type: BOOLEAN
runCleanAfterDelete:
displayName: Run Clean
description: Enable to run metadata clean task after file deletion.
type: BOOLEAN
scanModified:
displayName: Scan Modifications
description: Enable to monitor changes in file system for modification flag. This option is NOT needed for Windows, because on Windows changes are triggered via CREATE, DELETE, and MOVE flags. Other OS may differ.
type: BOOLEAN
zzdebugTracing:
displayName: Debug Tracing
description: (Default=false) [***For Advanced Users***] Enable debug tracing. When enabled, additional tracing logging is added to Stash\plugins\FileMonitor\filemonitor.log

View File

@@ -6,12 +6,17 @@ config = {
"runGenerateContent": False,
# Enable to run scan when triggered by on_any_event.
"onAnyEvent": False,
# Enable to monitor changes in file system for modification flag. This option is NOT needed for Windows, because on Windows changes are triggered via CREATE, DELETE, and MOVE flags. Other OS may differ.
"scanModified": False,
# Timeout in seconds. This is how often it will check if a stop signal is sent.
"timeOut": 60,
# Enable to exit FileMonitor by creating special file in plugin folder\working
"createSpecFileToExit": True,
# Enable to delete special file imediately after it's created in stop process
"deleteSpecFileInStop": False,
# Enable to run metadata clean task after file deletion.
"runCleanAfterDelete": False,
# When enabled, if CREATE flag is triggered, DupFileManager task is called if the plugin is installed.
"onCreateCallDupFileManager": False, # Not yet implemented!!!!