mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-05 18:57:19 +02:00
Awake vNext - NOBLE_SIX_02162023 (#24183)
* Initial scaffolding for expiration configuration * Simplifying the code and adding support for expiration events * Bit more cleanup * Initial support for expirable keep-awake * Update some of the threading logic * Logging and timing consistency * Initial UI scaffolding * Fix pathing issue for the icon when using config file * Add missing definitions * Update with basic interface * Cleanup redundant calls * Update name per convention * Simplify declaration * Proper binding to secondary Time property * Cleanup the terminology use * Standardize naming conventions. * More Awake cleanup * Ability to update the UI when the tray icon updates * Small tweaks before ViewModel refactor * Refactor the view model logic * Some consistency fixes * Remove the build props change * Add settings scaffolding when a file does not exist * Update expect.txt * Fix typos * Update build in logs * Updating based on discussion in #24183. This specifically addresses the fact that the `ExpirationDateTime` property was incorrectly auto-initialized to `DateTime.MinValue` when it should've been set to `DateTimeOffset.MinValue` to be consistent with the underlying type and assumptions around date/time. --------- Co-authored-by: Clint Rutkas <clint@rutkas.com>
This commit is contained in:
@@ -1812,35 +1812,41 @@ From there, simply click on one of the supported files in the File Explorer and
|
||||
<data name="Awake.ModuleDescription" xml:space="preserve">
|
||||
<value>A convenient way to keep your PC awake on-demand.</value>
|
||||
</data>
|
||||
<data name="Awake_EnableAwake.Header" xml:space="preserve">
|
||||
<data name="Awake_EnableSettingsCard.Header" xml:space="preserve">
|
||||
<value>Enable Awake</value>
|
||||
<comment>Awake is a product name, do not loc</comment>
|
||||
</data>
|
||||
<data name="Awake_NoKeepAwake.Content" xml:space="preserve">
|
||||
<data name="Awake_NoKeepAwakeSelector.Content" xml:space="preserve">
|
||||
<value>Keep using the selected power plan</value>
|
||||
</data>
|
||||
<data name="Awake_IndefiniteKeepAwake.Content" xml:space="preserve">
|
||||
<data name="Awake_IndefiniteKeepAwakeSelector.Content" xml:space="preserve">
|
||||
<value>Keep awake indefinitely</value>
|
||||
</data>
|
||||
<data name="Awake_TemporaryKeepAwake.Content" xml:space="preserve">
|
||||
<value>Keep awake temporarily</value>
|
||||
<data name="Awake_TemporaryKeepAwakeSelector.Content" xml:space="preserve">
|
||||
<value>Keep awake for a time interval</value>
|
||||
</data>
|
||||
<data name="Awake_EnableDisplayKeepAwake.Header" xml:space="preserve">
|
||||
<data name="Awake_ExpirableKeepAwakeSelector.Content" xml:space="preserve">
|
||||
<value>Keep awake until expiration</value>
|
||||
</data>
|
||||
<data name="Awake_DisplaySettingsCard.Header" xml:space="preserve">
|
||||
<value>Keep screen on</value>
|
||||
</data>
|
||||
<data name="Awake_EnableDisplayKeepAwake.Description" xml:space="preserve">
|
||||
<data name="Awake_DisplaySettingsCard.Description" xml:space="preserve">
|
||||
<value>This setting is only available when keeping the PC awake</value>
|
||||
</data>
|
||||
<data name="Awake_Mode.Header" xml:space="preserve">
|
||||
<data name="Awake_ExpirationSettingsCard.Description" xml:space="preserve">
|
||||
<value>Keep custom awakeness state until a specific date and time</value>
|
||||
</data>
|
||||
<data name="Awake_ModeSettingsCard.Header" xml:space="preserve">
|
||||
<value>Mode</value>
|
||||
</data>
|
||||
<data name="Awake_Behavior_GroupSettings.Header" xml:space="preserve">
|
||||
<data name="Awake_BehaviorSettingsGroup.Header" xml:space="preserve">
|
||||
<value>Behavior</value>
|
||||
</data>
|
||||
<data name="Awake_TemporaryKeepAwake_Hours.Header" xml:space="preserve">
|
||||
<data name="Awake_IntervalHoursInput.Header" xml:space="preserve">
|
||||
<value>Hours</value>
|
||||
</data>
|
||||
<data name="Awake_TemporaryKeepAwake_Minutes.Header" xml:space="preserve">
|
||||
<data name="Awake_IntervalMinutesInput.Header" xml:space="preserve">
|
||||
<value>Minutes</value>
|
||||
</data>
|
||||
<data name="Oobe_Awake.Title" xml:space="preserve">
|
||||
@@ -1930,7 +1936,7 @@ From there, simply click on one of the supported files in the File Explorer and
|
||||
<data name="SeeWhatsNew.Content" xml:space="preserve">
|
||||
<value>See what's new</value>
|
||||
</data>
|
||||
<data name="Awake_Mode.Description" xml:space="preserve">
|
||||
<data name="Awake_ModeSettingsCard.Description" xml:space="preserve">
|
||||
<value>Manage the state of your device when Awake is active</value>
|
||||
</data>
|
||||
<data name="ExcludedApps.Header" xml:space="preserve">
|
||||
@@ -2120,8 +2126,11 @@ From there, simply click on one of the supported files in the File Explorer and
|
||||
<value>New size</value>
|
||||
<comment>First part of the default name of new sizes that can be added in PT's settings ui.</comment>
|
||||
</data>
|
||||
<data name="Awake_TimeBeforeAwake.Header" xml:space="preserve">
|
||||
<value>Time before returning to the previous awakeness state</value>
|
||||
<data name="Awake_IntervalSettingsCard.Header" xml:space="preserve">
|
||||
<value>Interval before returning to the previous awakeness state</value>
|
||||
</data>
|
||||
<data name="Awake_ExpirationSettingsCard.Header" xml:space="preserve">
|
||||
<value>End date and time</value>
|
||||
</data>
|
||||
<data name="MouseUtils.ModuleTitle" xml:space="preserve">
|
||||
<value>Mouse utilities</value>
|
||||
@@ -3056,4 +3065,4 @@ Activate by holding the key for the character you want to add an accent to, then
|
||||
<data name="Hosts_Toggle_LoopbackDuplicates.Header" xml:space="preserve">
|
||||
<value>Consider loopback addresses as duplicates</value>
|
||||
</data>
|
||||
</root>
|
||||
</root>
|
||||
|
||||
Reference in New Issue
Block a user