Skip to content

Release v1.0.6 - #28

Merged
ThanhTrunggDEV merged 1 commit into
masterfrom
release/v1.0.6
May 12, 2026
Merged

Release v1.0.6#28
ThanhTrunggDEV merged 1 commit into
masterfrom
release/v1.0.6

Conversation

@ThanhTrunggDEV

Copy link
Copy Markdown
Owner

Release v1.0.6

Copilot AI review requested due to automatic review settings May 12, 2026 14:01
@ThanhTrunggDEV
ThanhTrunggDEV merged commit 18b64d4 into master May 12, 2026
3 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants