Skip to content

Commit 67ea537

Browse files
committed
updates 2
1 parent 966a713 commit 67ea537

File tree

6 files changed

+19
-17
lines changed

6 files changed

+19
-17
lines changed

SmartImage.Lib/Searching/ImageResult.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public void FindDirectImages()
202202
}
203203
else {
204204
try {
205-
205+
206206
var directImages = ImageHelper.FindDirectImages(Url.ToString(), out var images);
207207

208208
string? direct = directImages?.FirstOrDefault();
@@ -214,8 +214,8 @@ public void FindDirectImages()
214214

215215
}
216216
}
217-
catch (Exception e) {
218-
Debug.WriteLine(e);
217+
catch {
218+
//
219219
}
220220
}
221221

SmartImage.Lib/Utilities/ImageHelper.cs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,11 @@ public static DisplayResolutionType GetDisplayResolution(int w, int h)
8282
}
8383

8484

85+
/*
86+
* Direct images are URIs that point to a binary image file
87+
*/
88+
89+
8590
/// <summary>
8691
/// Determines whether <paramref name="url"/> is a direct image link
8792
/// </summary>
@@ -133,10 +138,7 @@ public static List<string> FindDirectImages(string url, out List<Image> images,
133138
images = new List<Image>();
134139

135140
var directImages = new List<string>();
136-
137-
// Trace.WriteLine($"{url} | {directType} | {pingTime} | " +
138-
// $"{fragmentSize} | {readImage} | " +
139-
// $"{imageFilter} | {count}");
141+
140142

141143
IHtmlDocument document;
142144

SmartImage/Core/LocalConfig.cs renamed to SmartImage/Core/AppConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace SmartImage.Core
1212
{
13-
public static class LocalConfig
13+
public static class AppConfig
1414
{
1515
public static string ConfigFile
1616
{

SmartImage/Core/AppIntegration.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
namespace SmartImage.Core
2020
{
21-
internal enum IntegrationOption
21+
public enum IntegrationOption
2222
{
2323
Add,
2424
Remove
@@ -27,7 +27,7 @@ internal enum IntegrationOption
2727
/// <summary>
2828
/// Program OS integrations
2929
/// </summary>
30-
internal static class AppIntegration
30+
public static class AppIntegration
3131
{
3232
/*
3333
* HKEY_CLASSES_ROOT is an alias, a merging, of two other locations:
@@ -37,7 +37,7 @@ internal static class AppIntegration
3737

3838

3939
/// <returns><c>true</c> if operation succeeded; <c>false</c> otherwise</returns>
40-
internal static bool HandleContextMenu(IntegrationOption option)
40+
public static bool HandleContextMenu(IntegrationOption option)
4141
{
4242
/*
4343
* New context menu
@@ -103,7 +103,7 @@ internal static bool HandleContextMenu(IntegrationOption option)
103103

104104
}
105105

106-
internal static void HandlePath(IntegrationOption option)
106+
public static void HandlePath(IntegrationOption option)
107107
{
108108
switch (option) {
109109
case IntegrationOption.Add:
@@ -138,7 +138,7 @@ internal static void HandlePath(IntegrationOption option)
138138
}
139139

140140

141-
internal static void ResetIntegrations()
141+
public static void ResetIntegrations()
142142
{
143143
// Computer\HKEY_CLASSES_ROOT\*\shell\SmartImage
144144

@@ -150,7 +150,7 @@ internal static void ResetIntegrations()
150150
}
151151

152152
[DoesNotReturn]
153-
internal static void Uninstall()
153+
public static void Uninstall()
154154
{
155155
// autonomous uninstall routine
156156

@@ -185,7 +185,7 @@ internal static void Uninstall()
185185

186186
private const string REG_SHELL_CMD = "SOFTWARE\\Classes\\*\\shell\\SmartImage\\command";
187187

188-
internal static bool IsContextMenuAdded
188+
public static bool IsContextMenuAdded
189189
{
190190
get
191191
{

SmartImage/Core/AppInterface.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,7 +263,7 @@ internal static class AppInterface
263263
private static void UpdateConfig()
264264
{
265265
Program.Client.Reload();
266-
LocalConfig.SaveConfigFile();
266+
AppConfig.SaveConfigFile();
267267
}
268268

269269
private static TEnum ReadEnum<TEnum>() where TEnum : Enum

SmartImage/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ private static async Task Main(string[] args)
9898

9999
// Update
100100

101-
LocalConfig.ReadConfigFile();
101+
AppConfig.ReadConfigFile();
102102

103103
if (!args.Any()) {
104104
var options = NConsole.ReadOptions(AppInterface.MainMenuDialog);

0 commit comments

Comments
 (0)