Skip to content

Commit

Permalink
clean-ups
Browse files Browse the repository at this point in the history
  • Loading branch information
atavism committed Oct 3, 2024
1 parent 8802cea commit 693b420
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/features/home/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,11 @@ class _HomePageState extends State<HomePage> with TrayListener, WindowListener {

///window manager methods
void _initWindowManager() async {
final double devicePixelRatio = View.of(context).devicePixelRatio;
final double devicePixelRatio = MediaQuery.of(context).devicePixelRatio;

windowManager.addListener(this);
await windowManager.setPreventClose(true);

final double width = 360 * devicePixelRatio;
final double height = 712 * devicePixelRatio;

Expand Down

0 comments on commit 693b420

Please sign in to comment.