Skip to content

Commit 7d48422

Browse files
nmetulevazchohfi
andauthored
Only check dev mode reg key (#306)
## Description Fixes #303 ## Type of Change <!-- Keep the applicable line(s), delete the rest --> - 🐛 Bug fix ## Checklist <!-- Delete the ones that do not apply to your changes --> - [x] Tested locally on Windows ## AI Description <!-- ai-description-start --> The DevModeService has been updated to only check for the "AllowDevelopmentWithoutDevLicense" registry key, removing the previous dependency on the "AllowAllTrustedApps" key. This change simplifies the logic for determining if development mode is enabled. <!-- ai-description-end --> Co-authored-by: Nikola Metulev <711864+nmetulev@users.noreply.github.com> Co-authored-by: Alexandre Zollinger Chohfi <alzollin@microsoft.com>
1 parent f12009b commit 7d48422

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/winapp-CLI/WinApp.Cli/Services/DevModeService.cs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,7 @@ public bool IsEnabled()
7171
return false;
7272
}
7373

74-
var dev = (int?)key.GetValue("AllowDevelopmentWithoutDevLicense") == 1;
75-
var sideload = (int?)key.GetValue("AllowAllTrustedApps") == 1;
76-
return dev && sideload;
74+
return (int?)key.GetValue("AllowDevelopmentWithoutDevLicense") == 1;
7775
}
7876

7977
private static int RunElevated(string fileName, string arguments)

0 commit comments

Comments
 (0)