Skip to content

Commit

Permalink
Group Global Tasks by Type to prevent adding multiple tasks for the s…
Browse files Browse the repository at this point in the history
…ame type

Several Frontend fixes
Fix PageTpe selection to be set, when dropdown is opened
  • Loading branch information
t0815 committed Oct 21, 2023
1 parent 4f7fbff commit 02e569c
Show file tree
Hide file tree
Showing 5 changed files with 137 additions and 48 deletions.
11 changes: 8 additions & 3 deletions MyCBZ/Events/GlobalActionRequiredEvent.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,16 @@ internal class GlobalActionRequiredEvent
{
public const int MESSAGE_TYPE_INFO = 0;
public const int MESSAGE_TYPE_WARNING = 1;
public const int MESSAGe_TYPE_ERROR = 2;
public const int MESSAGE_TYPE_ERROR = 2;

public const string TASK_TYPE_INDEX_REBUILD = "REBUILD_INDEX";
public const string TASK_TYPE_UPDATE_IMAGE_METADATA = "UPDATE_IMAGE_METADATA";

public ProjectModel ArchiveInfo { get; set; }

public int Type { get; set; }

public string TaskType { get; set; }

public Task<TaskResult> Task { get; set; }

Expand All @@ -33,13 +37,14 @@ public GlobalActionRequiredEvent(ProjectModel project, int type, String message,
ButtonText = buttonText;
}

public GlobalActionRequiredEvent(ProjectModel project, int type, String message, String buttonText, Task<TaskResult> task)
public GlobalActionRequiredEvent(ProjectModel project, int type, String message, String buttonText, String taskType, Task<TaskResult> task)
{
ArchiveInfo = project;
Type = type;
Message = message;
Task = task;
ButtonText = buttonText;
TaskType = taskType;
Task = task;
}
}
}
62 changes: 31 additions & 31 deletions MyCBZ/Forms/MainForm.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 02e569c

Please sign in to comment.