summaryrefslogtreecommitdiff
path: root/freefilesync/00_allow_parallel_ops.patch
diff options
context:
space:
mode:
authorB Stack <bgstack15@gmail.com>2022-06-07 15:38:20 -0400
committerB Stack <bgstack15@gmail.com>2022-06-07 15:38:20 -0400
commit9ee86228fb287d93b79c83bd684614eb988cd8f2 (patch)
treebc52fa511ab8ec63a8ac24b537fed38e3af17016 /freefilesync/00_allow_parallel_ops.patch
parentMerge branch 'scite-bump' into 'master' (diff)
downloadstackrpms-9ee86228fb287d93b79c83bd684614eb988cd8f2.tar.gz
stackrpms-9ee86228fb287d93b79c83bd684614eb988cd8f2.tar.bz2
stackrpms-9ee86228fb287d93b79c83bd684614eb988cd8f2.zip
ffs: major rewrite of spec for el8 and fc
Diffstat (limited to 'freefilesync/00_allow_parallel_ops.patch')
-rw-r--r--freefilesync/00_allow_parallel_ops.patch57
1 files changed, 57 insertions, 0 deletions
diff --git a/freefilesync/00_allow_parallel_ops.patch b/freefilesync/00_allow_parallel_ops.patch
new file mode 100644
index 0000000..473ae46
--- /dev/null
+++ b/freefilesync/00_allow_parallel_ops.patch
@@ -0,0 +1,57 @@
+Last version tested: 11.13
+The source release appears not to actually include the logic that performs operations in parallel, so this patch doesn't actually do anything.
+diff -Naur -x '*.orig' -x '*.rej' -x '*.git*' 11.4-0/FreeFileSync/Source/ui/folder_selector.cpp 11.4-1/FreeFileSync/Source/ui/folder_selector.cpp
+--- 11.4-0/FreeFileSync/Source/ui/folder_selector.cpp 2020-12-08 08:15:29.428156465 -0500
++++ 11.4-1/FreeFileSync/Source/ui/folder_selector.cpp 2020-12-08 19:12:09.205183330 -0500
+@@ -256,7 +256,7 @@
+ void FolderSelector::onSelectAltFolder(wxCommandEvent& event)
+ {
+ Zstring folderPathPhrase = getPath();
+- size_t parallelOps = getDeviceParallelOps_ ? getDeviceParallelOps_(folderPathPhrase) : 1;
++ size_t parallelOps = getDeviceParallelOps_ ? getDeviceParallelOps_(folderPathPhrase) : 5;
+
+ if (showCloudSetupDialog(parent_, folderPathPhrase, sftpKeyFileLastSelected_, parallelOps, static_cast<bool>(setDeviceParallelOps_)) != ConfirmationButton::accept)
+ return;
+diff -Naur -x '*.orig' -x '*.rej' -x '*.git*' 11.4-0/FreeFileSync/Source/ui/small_dlgs.cpp 11.4-1/FreeFileSync/Source/ui/small_dlgs.cpp
+--- 11.4-0/FreeFileSync/Source/ui/small_dlgs.cpp 2020-12-08 08:15:29.432156507 -0500
++++ 11.4-1/FreeFileSync/Source/ui/small_dlgs.cpp 2020-12-08 19:07:22.970153675 -0500
+@@ -370,11 +370,14 @@
+
+ m_spinCtrlConnectionCount->SetValue(parallelOps);
+
+- m_spinCtrlConnectionCount->Disable();
+- m_staticTextConnectionCountDescr->Hide();
++ if (!canChangeParallelOp)
++ {
++ m_spinCtrlConnectionCount->Disable();
++ m_staticTextConnectionCountDescr->Hide();
+
+- m_spinCtrlChannelCountSftp->Disable();
+- m_buttonChannelCountSftp ->Disable();
++ m_spinCtrlChannelCountSftp->Disable();
++ m_buttonChannelCountSftp ->Disable();
++ }
+ //---------------------------------------------------------
+
+ //set up default view for dialog size calculation
+@@ -807,7 +810,7 @@
+
+ targetFolder = std::make_unique<FolderSelector>(this, *this, *m_buttonSelectTargetFolder, *m_bpButtonSelectAltTargetFolder, *m_targetFolderPath,
+ targetFolderLastSelected, sftpKeyFileLastSelected, nullptr /*staticText*/, nullptr /*wxWindow*/, nullptr /*droppedPathsFilter*/,
+- [](const Zstring& folderPathPhrase) { return 1; } /*getDeviceParallelOps*/, nullptr /*setDeviceParallelOps*/);
++ [](const Zstring& folderPathPhrase) { return 5; } /*getDeviceParallelOps*/, nullptr /*setDeviceParallelOps*/);
+
+ m_targetFolderPath->setHistory(std::make_shared<HistoryList>(folderHistory, folderHistoryMax));
+
+diff -Naur -x '*.orig' -x '*.rej' -x '*.git*' 11.4-0/FreeFileSync/Source/ui/sync_cfg.cpp 11.4-1/FreeFileSync/Source/ui/sync_cfg.cpp
+--- 11.13-0/FreeFileSync/Source/ui/sync_cfg.cpp 2021-08-17 19:18:02.039992429 -0400
++++ 11.13-1/FreeFileSync/Source/ui/sync_cfg.cpp 2021-08-17 19:33:01.693071327 -0400
+@@ -348,7 +348,7 @@
+ commandHistoryOut_(commandHistory),
+ globalPairCfg_(globalPairCfg),
+ localPairCfg_(localPairCfg),
+- enableExtraFeatures_(false),
++ enableExtraFeatures_(true),
+ showMultipleCfgs_(showMultipleCfgs)
+ {
+ setStandardButtonLayout(*bSizerStdButtons, StdButtons().setAffirmative(m_buttonOkay).setCancel(m_buttonCancel));
bgstack15