improve code clarity and maintainability

This commit is contained in:
22
2025-10-05 09:54:59 +08:00
parent 4c170f6dd5
commit 02440b659d
2 changed files with 4 additions and 4 deletions

View File

@@ -463,7 +463,7 @@ class ControlBar extends HookWidget {
),
title: Text(t.history),
trailing: Text(
'Ctirl + H',
'Ctrl + H',
style: TextStyle(
fontSize: 12,
color: Theme.of(context).dividerColor,
@@ -487,7 +487,7 @@ class ControlBar extends HookWidget {
),
title: Text(t.settings),
trailing: Text(
'Ctirl + P',
'Ctrl + P',
style: TextStyle(
fontSize: 12,
color: Theme.of(context).dividerColor,

View File

@@ -16,8 +16,8 @@ bool isMsix() {
}
String resolvedExecutablePath = Platform.resolvedExecutable;
String path = p.dirname(resolvedExecutablePath);
String batFilePath = p.join(path, 'AppxManifest.xml');
return File(batFilePath).existsSync();
String manifestPath = p.join(path, 'AppxManifest.xml');
return File(manifestPath).existsSync();
}
class About extends HookWidget {