mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Add support to set Title on desktop
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import 'dart:io' show Platform;
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:window_manager/window_manager.dart';
|
||||
import 'globals.dart';
|
||||
import 'home.dart';
|
||||
import 'set_server.dart';
|
||||
@@ -21,6 +23,11 @@ final _router = GoRouter(
|
||||
void main() async {
|
||||
if (!kIsWeb) await prepareJar();
|
||||
await preparePrefs();
|
||||
if (!kIsWeb && (Platform.isWindows || Platform.isLinux || Platform.isMacOS)) {
|
||||
WidgetsFlutterBinding.ensureInitialized();
|
||||
await windowManager.ensureInitialized();
|
||||
await windowManager.setTitle("E-Hentai Downloader Dashboard");
|
||||
}
|
||||
runApp(const MainApp());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user