Skip to content

Commit

Permalink
BUGFIX: Viana Settings File was not correct deployed.
Browse files Browse the repository at this point in the history
  • Loading branch information
avosskuehler committed Jan 6, 2022
1 parent c9ea1b3 commit 0757d80
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 15 deletions.
2 changes: 1 addition & 1 deletion Setup/Setup/Config.wxi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<?define SupportPhone = "[email protected]"?>
<?define InstallDescription = "Video analysis for science education."?>
<?define UpgradeGuid = "{4830D7E5-685D-4637-B1BD-9A347BB911CF}"?>
<?define ProductVersion="6.2.1" ?>
<?define ProductVersion="6.3.1" ?>

<?if $(var.Platform) = x64 ?>
<?define ProductName = "Viana.NET" ?>
Expand Down
8 changes: 6 additions & 2 deletions VianaNET/Application/RecentFiles.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ public class RecentFiles : DependencyObject, INotifyPropertyChanged
private RecentFiles()
{
this.appSettings = Settings.Default;
this.appSettings.SettingsPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "VianaNET");
if (!Directory.Exists(this.appSettings.SettingsPath))
{
Directory.CreateDirectory(this.appSettings.SettingsPath);
}

maxNumItems = this.appSettings.NumberOfRecentFiles;
this.Load();

Expand Down Expand Up @@ -155,8 +161,6 @@ public ObservableCollection<ProjectEntry> RecentFilesCollection
/// </summary>
public string SettingsFile => Path.Combine(this.appSettings.SettingsPath, "VianaRecentFileList.xml");



///////////////////////////////////////////////////////////////////////////////
// Public methods //
///////////////////////////////////////////////////////////////////////////////
Expand Down
7 changes: 2 additions & 5 deletions VianaNET/Logging/ErrorLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ public static void ProcessException(Exception ex, bool showMessageBox)

string message = GetLogEntryForException(innerException);
WriteLine(message);

if (showMessageBox)
{
VianaDialog dlg = new VianaDialog("Exception occured", ex.Message, message, true);
Expand All @@ -118,10 +118,7 @@ public static void WriteLine(string line)
// Use always ErrorLog.txt in LocalApplicationData
if (logWriter == null)
{
fs =
new FileStream(
Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) + "\\VianaNETErrorLog.txt",
FileMode.Append);
fs = new FileStream(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "VianaNET", "VianaNETErrorLog.txt"), FileMode.Append);
logWriter = new StreamWriter(fs);
}

Expand Down
6 changes: 3 additions & 3 deletions VianaNET/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Freie Universität Berlin")]
[assembly: AssemblyProduct("Viana.NET")]
[assembly: AssemblyCopyright("Copyright @ Dr. Adrian Voßkühler 2021")]
[assembly: AssemblyCopyright("Copyright @ Dr. Adrian Voßkühler 2022")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]

Expand Down Expand Up @@ -49,6 +49,6 @@
// Sie können alle Werte angeben oder Standardwerte für die Build- und Revisionsnummern verwenden,
// indem Sie "*" wie unten gezeigt eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("6.2.*")]
[assembly: AssemblyFileVersion("6.2.1")]
[assembly: AssemblyVersion("6.3.*")]
[assembly: AssemblyFileVersion("6.3.1")]
[assembly: Guid("1E23CAD1-6F4B-4a08-BF9B-91E27D8E2503")]
8 changes: 4 additions & 4 deletions VianaNET/VianaNET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -939,22 +939,22 @@
<ItemGroup>
<PublishFile Include="CustomStyles\FontAwesome\fontawesome-all.css">
<Visible>False</Visible>
<PublishState>Exclude</PublishState>
<IncludeHash>True</IncludeHash>
<Group>
</Group>
<TargetPath>
</TargetPath>
<PublishState>Exclude</PublishState>
<IncludeHash>True</IncludeHash>
<FileType>File</FileType>
</PublishFile>
<PublishFile Include="CustomStyles\FontAwesome\IconChar.tt">
<Visible>False</Visible>
<PublishState>Exclude</PublishState>
<IncludeHash>True</IncludeHash>
<Group>
</Group>
<TargetPath>
</TargetPath>
<PublishState>Exclude</PublishState>
<IncludeHash>True</IncludeHash>
<FileType>File</FileType>
</PublishFile>
</ItemGroup>
Expand Down

0 comments on commit 0757d80

Please sign in to comment.