feat(save-attachments): editable filenames, Hebrew status, smoother subfolder load
- DataGrid case picker now shows status via CaseStatusToHebrewConverter (added PendingHearing / PendingDecision mappings) - Attachment row replaces the read-only filename TextBlock with a TwoWay TextBox so users can rename a file before saving (flows through EspoAttachment.Name into the upload + the on-disk path) - SaveAttachmentsViewModel.IsLoadingSubfolders gates the folder ComboBox while EnsureCaseSubfolders / GetCase / ListNetworkStorageFolder run, so users can't pick a stale "(שורש התיק)" before the real list arrives - About tab: ResolveDisplayVersion now reads from the host VSTO assembly (*.OutlookAddin) instead of the UI assembly. The UI csproj is SDK-style with no <Version> so it always reported 1.0.0.0, which leaked into the About line on dev installs - Bump to 1.1.2.0 (csproj + AssemblyInfo) to match the v1.1.2 tag that will trigger the Gitea Actions auto-publish to platform.dev Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -105,6 +105,22 @@ namespace MarcusLaw.OutlookAddin.UI.ViewModels
|
||||
// Not running under ClickOnce (dev / F5), or System.Deployment
|
||||
// is not available — fall through to the AssemblyVersion.
|
||||
}
|
||||
// The host VSTO assembly is where versioning policy lives
|
||||
// (csproj + AssemblyInfo). The UI assembly is SDK-style with
|
||||
// no <Version>, so it always reports 1.0.0.0 — don't fall back
|
||||
// to it. Walk loaded assemblies for the host by name suffix.
|
||||
if (v == null)
|
||||
{
|
||||
foreach (var asm in AppDomain.CurrentDomain.GetAssemblies())
|
||||
{
|
||||
var name = asm.GetName().Name;
|
||||
if (name != null && name.EndsWith(".OutlookAddin", StringComparison.Ordinal))
|
||||
{
|
||||
v = asm.GetName().Version;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
v ??= typeof(SettingsViewModel).Assembly.GetName().Version;
|
||||
if (v == null) return "1.0.0";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user