mirror of
https://github.com/nini22P/iris.git
synced 2026-09-03 06:24:07 +08:00
improve code clarity and maintainability
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user