mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Add support for prevent screen capture
This commit is contained in:
@@ -151,6 +151,9 @@ void main() async {
|
||||
await windowManager.ensureInitialized();
|
||||
}
|
||||
await initLogger();
|
||||
if (prefs.getBool("preventScreenCapture") ?? false) {
|
||||
await platformDisplay.enableProtect();
|
||||
}
|
||||
GoRouter.optionURLReflectsImperativeAPIs = true;
|
||||
runApp(const MainApp());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user