Enable --debug

This commit is contained in:
Feodor Fitsner 2024-11-29 14:29:04 -08:00
parent aa278d60ca
commit 216fab88fa
1 changed files with 4 additions and 4 deletions

View File

@ -95,10 +95,10 @@ String appDir = "";
Map<String, String> environmentVariables = {};
void main(List<String> args) async {
// if (isProduction) {
// // ignore: avoid_returning_null_for_void
// debugPrint = (String? message, {int? wrapWidth}) => null;
// }
if (!args.contains("--debug")) {
// ignore: avoid_returning_null_for_void
debugPrint = (String? message, {int? wrapWidth}) => null;
}
await setupDesktop();