Added 50 Entry Limit

This commit is contained in:
Krowe Moh 2026-04-09 05:53:45 +10:00
parent d8d8757768
commit bb160e798e
2 changed files with 4 additions and 12 deletions

View File

@ -146,10 +146,10 @@ public class RightClickMenuCommand : ViewModelCommand<ApplicationViewModel>
{
Thread.Yield();
cancellationToken.ThrowIfCancellationRequested();
fileAction(entry, bulktype | EBulkType.Auto, update);
fileAction(entry, bulktype, update);
}
LogExport(contextViewModel, filetype);
if (assets.Length > 50) LogExport(contextViewModel, filetype);
return;
}
@ -212,15 +212,7 @@ public class RightClickMenuCommand : ViewModelCommand<ApplicationViewModel>
{
FLogger.Append(ELog.Information, () =>
{
FLogger.Text($"Successfully exported {contextViewModel.CUE4Parse.ExportedCount} {fileType}", Constants.WHITE, true);
});
}
if (contextViewModel.CUE4Parse.FailedExportCount > 0)
{
FLogger.Append(ELog.Error, () =>
{
FLogger.Text($"Failed to export {contextViewModel.CUE4Parse.FailedExportCount} {fileType}", Constants.WHITE, true);
FLogger.Text($"Successfully exported {contextViewModel.CUE4Parse.ExportedCount} {fileType}, Failed to export {contextViewModel.CUE4Parse.FailedExportCount} {fileType} in other folders.", Constants.WHITE, true);
});
}

View File

@ -426,7 +426,7 @@ public class TabItem : ViewModel
{
Interlocked.Increment(ref ApplicationService.ApplicationView.CUE4Parse.ExportedCount);
Log.Information("{FileName} successfully saved", fileName);
if (updateUi)
if (updateUi && ApplicationService.ApplicationView.CUE4Parse.ExportedCount < 50)
{
FLogger.Append(ELog.Information, () =>
{