Release v1.0.6 - #28
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Release v1.0.6 focuses on stricter “focus session” enforcement by auto-resuming incomplete sessions on startup and registering the app for Windows auto-start during an active session, plus expanding the default distracting-app blocklist.
Changes:
- Auto-restore any incomplete focus session at app startup (no user confirmation).
- Enable/disable Windows auto-start (HKCU
Run) when a focus session starts/ends. - Expand the default Windows “distracting apps” blocklist and document the release in the changelog.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| src/DontBeLazy.WPF/ViewModels/MainViewModel.cs | Removes restore/discard prompt and always restores an incomplete session, navigating straight to Focus. |
| src/DontBeLazy.WPF/ViewModels/FocusSessionViewModel.cs | Toggles auto-start on session start and turns it off when the session is reset. |
| src/DontBeLazy.WPF/App.xaml.cs | Adds registry-based auto-start helper (SetAutoStart). |
| src/DontBeLazy.Infrastructure/Services/WindowsStrictEngine.cs | Expands the default process-name blocklist for distracting apps/games/launchers. |
| CHANGELOG.md | Adds v1.0.6 release notes describing auto-start/auto-resume and blocklist expansion. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+194
to
+200
| using var key = Microsoft.Win32.Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run", true); | ||
| if (key != null) | ||
| { | ||
| if (enable) | ||
| key.SetValue("DontBeLazy", System.Environment.ProcessPath ?? System.Reflection.Assembly.GetExecutingAssembly().Location); | ||
| else | ||
| key.DeleteValue("DontBeLazy", false); |
| key.DeleteValue("DontBeLazy", false); | ||
| } | ||
| } | ||
| catch { } |
Comment on lines
44
to
+56
| private readonly string[] _distractingApps = new[] { | ||
| "discord", "steam", "riotclient", "leagueoflegends", | ||
| "epicgameslauncher", "spotify", "zalo", "telegram", "taskmgr", | ||
| "whatsapp", "messenger", "skype", "viber", "netflix", | ||
| "xboxapp", "vctray", "steamwebhelper" | ||
| // Launchers & Social | ||
| "discord", "steam", "steamwebhelper", "riotclient", "riotclientux", | ||
| "epicgameslauncher", "eadesktop", "origin", "upc", "ubisoftgamelauncher", | ||
| "battle.net", "xboxapp", | ||
| // Games | ||
| "leagueoflegends", "valorant", "cs2", "csgo", "dota2", "minecraftlauncher", | ||
| "robloxplayerbeta", "roblox", "gta5", "gtavlauncher", "playgtav", | ||
| "r5apex", "tslgame", "overwatch", "genshinimpact", "HonkaiImpact3rd", | ||
| // Media & Chat | ||
| "spotify", "zalo", "telegram", "whatsapp", "messenger", "skype", "viber", "netflix", | ||
| // System | ||
| "taskmgr", "vctray" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release v1.0.6