mirror of
https://github.com/krustur/IconSnap.git
synced 2026-09-17 14:43:49 +00:00
Added Informative message when running from Workbench without shift-clicking other icons
This commit is contained in:
+10
-5
@@ -96,7 +96,7 @@ int main(int argc, char **argv)
|
||||
if (argc == 0)
|
||||
{
|
||||
// Opened from WB
|
||||
Information("Started from Workbench\n");
|
||||
Information("Started from Workbench\n\n");
|
||||
|
||||
// Read args from tooltip
|
||||
struct WBStartup *wbStartup = (struct WBStartup *)argv;
|
||||
@@ -134,13 +134,13 @@ int main(int argc, char **argv)
|
||||
STRPTR AlignXTT = FindToolType(iconSnapDiskObject->do_ToolTypes, "ALIGNX");
|
||||
if (AlignXTT)
|
||||
{
|
||||
Information("AlignXTT: %s\n", AlignXTT);
|
||||
// Information("AlignXTT: %s\n", AlignXTT);
|
||||
AlignX = strtol(AlignXTT, NULL, 10);
|
||||
}
|
||||
STRPTR AlignYTT = FindToolType(iconSnapDiskObject->do_ToolTypes, "ALIGNY");
|
||||
if (AlignYTT)
|
||||
{
|
||||
Information("AlignYTT: %s\n", AlignYTT);
|
||||
// Information("AlignYTT: %s\n", AlignYTT);
|
||||
AlignY = strtol(AlignYTT, NULL, 10);
|
||||
}
|
||||
STRPTR CenterXTT = FindToolType(iconSnapDiskObject->do_ToolTypes, "CENTERX");
|
||||
@@ -153,7 +153,6 @@ int main(int argc, char **argv)
|
||||
{
|
||||
BottomY = TRUE;
|
||||
}
|
||||
|
||||
}
|
||||
CurrentDir(oldDir);
|
||||
|
||||
@@ -166,12 +165,18 @@ int main(int argc, char **argv)
|
||||
}
|
||||
|
||||
// No tools selected?
|
||||
if (argc <= 1)
|
||||
{
|
||||
Information("Use IconSnap from Workbench by Shift-clicking on the Icons\n");
|
||||
Information("you want to SnapShot, and double click on IconSnap\n");
|
||||
exit(RETURN_OK);
|
||||
}
|
||||
|
||||
|
||||
// Iterate parameters
|
||||
LONG numArgs = wbStartup->sm_NumArgs;
|
||||
Verbose("Number of arguments received = %ld\n", numArgs);
|
||||
|
||||
|
||||
// for (LONG i = 0; i < numArgs; i++)
|
||||
// {
|
||||
//Verbose("Argument %ld name = %s\n", i, wbStartup->sm_ArgList[i].wa_Name);
|
||||
|
||||
@@ -35,7 +35,7 @@ short iconLibraryV44Enabled = FALSE;
|
||||
// Logging
|
||||
#define LOG_MAX (256)
|
||||
// const char *ConsoleString = "CON:20/20/500/100/IconSnap/CLOSE";
|
||||
const char *ConsoleString = "CON:20/20/500/100/IconSnap";
|
||||
const char *ConsoleString = "CON:15/23/500/220/IconSnap";
|
||||
long ConsoleDelay = 100;
|
||||
unsigned char *LogBuffer = NULL;
|
||||
short verbose = FALSE;
|
||||
|
||||
Reference in New Issue
Block a user