Skip to content

Commit 1156daf

Browse files
authored
fix: second build fails with DirectoryNotFoundException (#25)
* refactor: use SVG path icons for theme and locale buttons - Replace emoji with PathGeometry icons (Sun/Moon/Globe) - Theme: Moon icon in light mode, Sun icon in dark mode (toggled via IsDarkTheme) - Locale: Globe icon overlay with EN/中 text label - Remove ThemeButtonText emoji property from ViewModel * fix: Config.OutputPath overwritten with .zip path causing second build failure - After first build, OutputPath was set to the .zip file path - Second build used it as a directory, creating a broken path - Fix: don't overwrite OutputPath with .zip, keep it as directory only
1 parent fa401b4 commit 1156daf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/ViewModels/PatchViewModel.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ [RelayCommand] async Task Build()
5555
L(_loc.T("Patch.Packing", Path.GetFileName(zip)));
5656
await _pkg.CompressDirectoryAsync(tmp, zip);
5757
Directory.Delete(tmp, true);
58-
Progress = 100; Config.OutputPath = zip;
58+
Progress = 100;
5959
Status = _loc.T("Patch.Success", Path.GetFileName(zip), new FileInfo(zip).Length / 1024.0);
6060
L(Status);
6161
}

0 commit comments

Comments
 (0)