Awake Updates - TILLSON_11272024 (#36049)

* Update with bug fixes for tray icon and support for parent process

* Process information enum

* Update the docs

* Fix spelling

* Make sure that PID is used in PT config flow

* Logic for checks based on #34148

* Update with link to PR

* Fixes #34717

* Small cleanup

* Proper task segmentation in a function

* Cleanup the code

* Fix synchronization context issue

* Update planning doc

* Test disabling caching to see if that manages to pass CI

* Cleanup to make sure that we're logging things properly.

* Update ci.yml

* Disable cache to pass CI

* Retry logic

* Cleanup

* Code cleanup

* Fixes #35848

* Update notes and codename

* After third attempt, log error instead of throwing exception

* More cleanup to avoid double execution

* Add expected word

* Safeguards for bad values for timed keep-awake

* More updates to make sure I am using uint

* Update error message

* Update packages

* Fix notice and revert CsWinRT upgrade

* Codename update

* Update expect.txt

* Update the struct

* Ensuring we're properly awaiting tray initialization

* Update to make sure tray reflects the bound process

* Cleanup, proper JSON serialization for logs.

* Not needed.

* Add command validation logic

* Moving the initialization logic earlier

* Make sure we show the display state in the tooltip

* Update tray string

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update src/modules/awake/Awake/Core/Manager.cs

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>

* Update logic for icon resets

* Update doc

* Simplify function for setting mode shell icon

* Issues should be properly linked

* Minor cleanup

* Update timed behavior

---------

Co-authored-by: Jaime Bernardo <jaime@janeasystems.com>
Co-authored-by: Clint Rutkas <clint@rutkas.com>
This commit is contained in:
Den Delimarsky 🔐
2024-12-08 22:41:05 -08:00
committed by GitHub
parent 3aec0a06ac
commit ef672b5564
16 changed files with 506 additions and 224 deletions

View File

@@ -258,6 +258,24 @@ namespace Awake.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Off.
/// </summary>
internal static string AWAKE_SCREEN_OFF {
get {
return ResourceManager.GetString("AWAKE_SCREEN_OFF", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to On.
/// </summary>
internal static string AWAKE_SCREEN_ON {
get {
return ResourceManager.GetString("AWAKE_SCREEN_ON", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Expiring.
/// </summary>
@@ -285,6 +303,15 @@ namespace Awake.Properties {
}
}
/// <summary>
/// Looks up a localized string similar to Bound to.
/// </summary>
internal static string AWAKE_TRAY_TEXT_PID_BINDING {
get {
return ResourceManager.GetString("AWAKE_TRAY_TEXT_PID_BINDING", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Interval.
/// </summary>

View File

@@ -208,4 +208,14 @@
<data name="AWAKE_CMD_PARENT_PID_OPTION" xml:space="preserve">
<value>Uses the parent process as the bound target - once the process terminates, Awake stops.</value>
</data>
<data name="AWAKE_TRAY_TEXT_PID_BINDING" xml:space="preserve">
<value>Bound to</value>
<comment>Describes the process ID Awake is bound to when running.</comment>
</data>
<data name="AWAKE_SCREEN_ON" xml:space="preserve">
<value>On</value>
</data>
<data name="AWAKE_SCREEN_OFF" xml:space="preserve">
<value>Off</value>
</data>
</root>