Skip to content

Commit

Permalink
FUCK, FUCK, FUCK SNAP
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilLord666 committed Mar 5, 2024
1 parent 0f79246 commit 585ff1f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,11 @@ public ObservableCollection<SerialPortShortInfoModel> Load()

public void Save(ObservableCollection<SerialPortShortInfoModel> devicesConfigs)
{
string content = JsonSerializer.Serialize(devicesConfigs);
File.WriteAllText(_configFile, content);
if (!string.IsNullOrEmpty(_configFile))
{
string content = JsonSerializer.Serialize(devicesConfigs);
File.WriteAllText(_configFile, content);
}
}

private bool PrepareDevConfigDirectory(string file)
Expand Down
5 changes: 3 additions & 2 deletions app/Wissance.Zerial/Wissance.Zerial.Desktop/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ class Program
[STAThread]
public static void Main(string[] args)
{
string snapEnv = args.FirstOrDefault(a => a.Contains("snap"));
Environment = snapEnv != null ? SnapEnvironmentKey : OtherEnvironmentKey;
// string snapEnv = args.FirstOrDefault(a => a.Contains("snap"));
// Environment = snapEnv != null ? SnapEnvironmentKey : OtherEnvironmentKey;
Environment = SnapEnvironmentKey;

BuildAvaloniaApp().StartWithClassicDesktopLifetime(args);
}
Expand Down

0 comments on commit 585ff1f

Please sign in to comment.