feat: Enhance Face AI upload functionality and UI
- Updated MainWindow.axaml to increase height and add new UI elements for SSH upload configuration. - Implemented commands for opening source and destination paths in file explorer. - Added FaceUploadPath and SSH configuration properties to DataModel and AiSettingsViewModel. - Introduced validation for FaceUploadPath format and commands for uploading face encoder output. - Enhanced PickerPreferenceService to manage SSH credentials and upload preferences. - Updated settings persistence to include FaceUploadPath and SSH preferences. - Added tests for FaceUploadPath validation and upload command enabling logic.
This commit is contained in:
parent
e68608312a
commit
e9142df97c
22 changed files with 1477 additions and 84 deletions
|
|
@ -71,8 +71,8 @@ namespace MaddoShared
|
|||
int threads = options.MaxThreads;
|
||||
|
||||
// Load logo once as raw bytes (cross-platform). byte[] is safe to share across threads.
|
||||
byte[]? logoBytes = null;
|
||||
if (picSettings.LogoAggiungi && File.Exists(picSettings.LogoNomeFile))
|
||||
byte[]? logoBytes = picSettings.LogoData;
|
||||
if (logoBytes is null && picSettings.LogoAggiungi && File.Exists(picSettings.LogoNomeFile))
|
||||
{
|
||||
logoBytes = File.ReadAllBytes(picSettings.LogoNomeFile);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ public class PicSettings
|
|||
public string DirectoryDestinazione { get; set; }
|
||||
public string TestoFirmaStart { get; set; }
|
||||
public string TestoFirmaStartV { get; set; }
|
||||
public byte[]? LogoData { get; set; }
|
||||
public DateTime DataPartenza { get; set; }
|
||||
public string TestoOrario { get; set; }
|
||||
public int DimStandard { get; set; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue