Skip to content

Commit

Permalink
fix: text.contains condition in AlistNotifier for new alist
Browse files Browse the repository at this point in the history
new alist support s3 server
  • Loading branch information
Xmarmalade committed Mar 26, 2024
1 parent 2483b3f commit 4bf4ebc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/provider/alist_provider.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class AlistNotifier extends StateNotifier<AlistState> {
}

void checkState(String text) {
if (text.contains('start ') && text.contains('server')) {
if (text.contains('start HTTP server')) {
if (text.contains('FATA')) {
text = text.split('FATA')[0].trim();
}
Expand Down
2 changes: 1 addition & 1 deletion lib/theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ class AlistHelperTheme {
brightness: Brightness.dark,
primary: primaryColor,
secondary: primaryColor,
background: const Color.fromARGB(255, 24, 24, 24),
surface: const Color.fromARGB(255, 24, 24, 24),
),
useMaterial3: true,
textTheme: TextTheme(
Expand Down

0 comments on commit 4bf4ebc

Please sign in to comment.