1
0
Эх сурвалжийг харах

Factoring out HELP_FILTER

Source commit: 82b6f2701aa2484346251e22315c3b3350833d19
Martin Prikryl 8 жил өмнө
parent
commit
efb4c75c44

+ 2 - 1
source/forms/SelectMask.cpp

@@ -6,6 +6,7 @@
 #include <FileMasks.h>
 #include <FileMasks.h>
 #include <CoreMain.h>
 #include <CoreMain.h>
 #include <TextsWin.h>
 #include <TextsWin.h>
+#include <HelpWin.h>
 #include <Tools.h>
 #include <Tools.h>
 #include <VCLCommon.h>
 #include <VCLCommon.h>
 
 
@@ -99,7 +100,7 @@ void __fastcall TSelectMaskDialog::Init(TMode Mode)
     case smFilter:
     case smFilter:
       CaptionStr = FILTER_MASK_CAPTION;
       CaptionStr = FILTER_MASK_CAPTION;
       ApplyToDirectoriesCheck->Hide();
       ApplyToDirectoriesCheck->Hide();
-      HelpKeyword = L"ui_filter";
+      HelpKeyword = HELP_FILTER;
       break;
       break;
   }
   }
   Caption = LoadStr(CaptionStr);
   Caption = LoadStr(CaptionStr);

+ 1 - 0
source/resource/HelpWin.h

@@ -59,5 +59,6 @@
 #define HELP_DEBUGGING               "debugging"
 #define HELP_DEBUGGING               "debugging"
 #define HELP_EXTENSION_OPTIONS       "ui_pref_commands"
 #define HELP_EXTENSION_OPTIONS       "ui_pref_commands"
 #define HELP_CHANGE_PASSWORD         "task_change_password"
 #define HELP_CHANGE_PASSWORD         "task_change_password"
+#define HELP_FILTER                  "ui_filter"
 
 
 #endif // TextsWin
 #endif // TextsWin