浏览代码

Adding two more startup sequence counter steps between U and O and O and I

Source commit: 110ec6ba43bbf8270d36e06cde23053a31a76369
Martin Prikryl 2 年之前
父节点
当前提交
a76fa3af6d
共有 3 个文件被更改,包括 10 次插入1 次删除
  1. 8 0
      source/forms/CustomScpExplorer.cpp
  2. 1 0
      source/forms/ScpCommander.cpp
  3. 1 1
      source/windows/WinMain.cpp

+ 8 - 0
source/forms/CustomScpExplorer.cpp

@@ -9796,6 +9796,14 @@ void __fastcall TCustomScpExplorerForm::Dispatch(void * Message)
       M->Result = !FShowing;
       break;
 
+    case WM_SHOWWINDOW:
+      if (M->WParam)
+      {
+        AddStartupSequence(L"J");
+      }
+      TForm::Dispatch(Message);
+      break;
+
     default:
       TForm::Dispatch(Message);
       break;

+ 1 - 0
source/forms/ScpCommander.cpp

@@ -605,6 +605,7 @@ void __fastcall TScpCommanderForm::StartingWithoutSession()
 {
   TCustomScpExplorerForm::StartingWithoutSession();
 
+  AddStartupSequence(L"H");
   LocalDefaultDirectory();
 }
 //---------------------------------------------------------------------------

+ 1 - 1
source/windows/WinMain.cpp

@@ -853,7 +853,7 @@ bool __fastcall ShowUpdatesIfAvailable()
 int __fastcall Execute()
 {
   std::unique_ptr<TStartupThread> StartupThreadOwner(StartupThread);
-  AddStartupSequence(L"E");
+  AddStartupSequence(L"X");
   DebugAssert(StoredSessions);
   TProgramParams * Params = TProgramParams::Instance();
   DebugAssert(Params);