Skip to content

Commit

Permalink
WinGet release preperation (#117)
Browse files Browse the repository at this point in the history
* WinGet release preperation

* Workspace
  • Loading branch information
flyingpie authored Jan 17, 2024
1 parent 9f8c971 commit 83db694
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 4 additions & 1 deletion windows-terminal-quake/Native/TerminalProcess.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ public static Process Get(string[] args)
TimeSpan.FromMilliseconds(50),
TimeSpan.FromMilliseconds(100),
TimeSpan.FromMilliseconds(250),
TimeSpan.FromMilliseconds(500)
TimeSpan.FromMilliseconds(500),
TimeSpan.FromMilliseconds(1000),
TimeSpan.FromMilliseconds(2000),
TimeSpan.FromMilliseconds(5000),
},
onRetry: (ex, t) => Log.Error($"Error creating process: '{ex.Message}'"));

Expand Down
2 changes: 2 additions & 0 deletions windows-terminal-quake/Settings/QSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ namespace WindowsTerminalQuake.Settings;

public class QSettings
{
public static readonly string DefaultPathToSettingsFile = Path.Combine(Path.GetDirectoryName(new Uri(typeof(QSettings).Assembly.Location).LocalPath), SettingsFileNameWithoutExtension + ".json");

public static readonly string[] PathsToSettingsDirs = new[]
{
// C:/path/to/windows-terminal-quake.json
Expand Down
4 changes: 2 additions & 2 deletions windows-terminal-quake/Settings/SettingsDto.cs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public class SettingsDto
/// <para>The keys that can be used to toggle the terminal.</para>
/// <para>See "Hotkeys" for possible values.</para>
/// </summary>
public IReadOnlyCollection<Hotkey>? Hotkeys { get; set; }
public IReadOnlyCollection<Hotkey>? Hotkeys { get; set; } = Array.Empty<Hotkey>();

/// <summary>
/// <para>Minimum level of events that are logged.</para>
Expand Down Expand Up @@ -167,7 +167,7 @@ public class SettingsDto
/// The location of the file where the current settings were loaded from.
/// Can be null if these are defaults.
/// </summary>
internal string? PathToSettings { get; set; }
internal string PathToSettings { get; set; } = QSettings.DefaultPathToSettingsFile;

/// <summary>
/// Vertical screen coverage as an index (0 - 1).
Expand Down

0 comments on commit 83db694

Please sign in to comment.