Skip to content

Commit 95e16e9

Browse files
committed
Fixed preference display text
Disabled character encoding probing for now. This needs to become an optional setting.
1 parent 7bc43b3 commit 95e16e9

File tree

7 files changed

+48
-24
lines changed

7 files changed

+48
-24
lines changed

MacroscopeDocument/MacroscopeDocument/DocumentTypes/MacroscopeDocumentHTML.cs

+6-1
Original file line numberDiff line numberDiff line change
@@ -1789,9 +1789,13 @@ string HtmlText
17891789
private Encoding HtmlSniffCharset ()
17901790
{
17911791

1792+
// TODO: Make this optional in preferences
1793+
17921794
// TODO: Implement add more encodings detectors
17931795

17941796
Encoding EncSniffed = Encoding.UTF8;
1797+
1798+
#if DEBUG
17951799
string HtmlData = this.FetchHtmlFile( Url: this.DocUrl );
17961800
byte [] HtmlBytes = Encoding.ASCII.GetBytes( HtmlData );
17971801

@@ -1822,7 +1826,8 @@ private Encoding HtmlSniffCharset ()
18221826
}
18231827

18241828
}
1825-
1829+
#endif
1830+
18261831
return( EncSniffed );
18271832

18281833
}

MacroscopeDocumentCollection/MacroscopeDocumentCollection.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2248,9 +2248,9 @@ public void RecalculateClickPaths ()
22482248

22492249
if( msDoc.GetIsInternal() && msDoc.GetIsHtml() )
22502250
{
2251-
2251+
#if DEBUG
22522252
this.ClickPathAnalysis.Analyze( RootDoc: msDoc );
2253-
2253+
#endif
22542254
}
22552255

22562256
}

MacroscopeEnvironment/MacroscopePreferencesManager.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,7 @@ public static void SetDefaultValues ()
441441

442442
DetectLanguage = true;
443443

444-
AnalyzeClickPaths = true;
444+
AnalyzeClickPaths = false;
445445

446446
/** SEO Options ------------------------------------------------------ **/
447447

@@ -1559,7 +1559,7 @@ public static void SetDetectLanguage ( Boolean Enabled )
15591559
DetectLanguage = Enabled;
15601560
}
15611561

1562-
/* ---------------------------------------------------------------------- */
1562+
/* ---------------------------------------------------------------------- */
15631563

15641564
public static Boolean GetAnalyzeClickPaths ()
15651565
{

MacroscopeForms/MacroscopeMainForm.cs

+2
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,8 @@ public MacroscopeMainForm ()
179179
this.LockerAuthenticationDialogue = new object ();
180180
this.StartAuthenticationTimer( Delay: 1000 ); // 1000ms
181181

182+
this.ScanningControlsConfigure();
183+
182184
this.ScanningControlsEnable();
183185

184186
}

MacroscopeForms/MacroscopeMainForm/ScanningControls/ScanningControls.cs

+11
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,17 @@ public partial class MacroscopeMainForm : Form, IMacroscopeTaskController
3636

3737
/** Scanning Controls *****************************************************/
3838

39+
private void ScanningControlsConfigure ()
40+
{
41+
#if DEBUG
42+
this.toolStripButtonRecalculateClickPaths.Visible = true;
43+
#else
44+
this.toolStripButtonRecalculateClickPaths.Visible = false;
45+
#endif
46+
}
47+
48+
/** -------------------------------------------------------------------- **/
49+
3950
private void ScanningControlsEnable ()
4051
{
4152

MacroscopeUserControls/MacroscopePrefsControl/MacroscopePrefsControl.Designer.cs

+19-19
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

MacroscopeUserControls/MacroscopePrefsControl/MacroscopePrefsControl.cs

+6
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,12 @@ public void SetPrefsFormControlFields ()
160160

161161
this.checkBoxAnalyzeClickPaths.Checked = MacroscopePreferencesManager.GetAnalyzeClickPaths();
162162

163+
#if DEBUG
164+
this.groupBoxPageNavigationAnalysis.Visible = true;
165+
#else
166+
this.groupBoxPageNavigationAnalysis.Visible = false;
167+
#endif
168+
163169
/** Custom Filter Options ------------------------------------------ **/
164170

165171
this.checkBoxCustomFiltersEnable.Checked = MacroscopePreferencesManager.GetCustomFiltersEnable();

0 commit comments

Comments
 (0)