mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-08-12 19:39:05 +08:00
Include timestamp in .ini files
This commit is contained in:
parent
9f719d42bc
commit
f0579e59bd
@ -737,7 +737,8 @@ sub write_ini {
|
||||
|
||||
open my $fh, '>', $file;
|
||||
binmode $fh, ':utf8';
|
||||
printf $fh "# generated by Slic3r $Slic3r::VERSION\n";
|
||||
my $localtime = localtime;
|
||||
printf $fh "# generated by Slic3r $Slic3r::VERSION on $localtime\n";
|
||||
foreach my $category (sort keys %$ini) {
|
||||
printf $fh "\n[%s]\n", $category if $category ne '_';
|
||||
foreach my $key (sort keys %{$ini->{$category}}) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user