Added headless switch

Fixed UI
This commit is contained in:
Alessandro Autiero
2022-10-04 17:28:10 +02:00
parent 9a759ac9e3
commit c27dbaa306
20 changed files with 389 additions and 225 deletions

View File

@@ -38,7 +38,7 @@ Future<int> downloadRebootDll(int? lastUpdateMs) async {
if (exists && sha1.convert(await oldRebootDll.readAsBytes()) == sha1.convert(await File(rebootDll.path).readAsBytes())) {
outputDir.delete();
return lastUpdateMs!;
return lastUpdateMs ?? now.millisecondsSinceEpoch;
}
await rebootDll.rename(oldRebootDll.path);