这是indexloc提供的服务,不要输入任何密码
Skip to content

fix: disable bidirectional isolates for Linux #571

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 15, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions lib/view/page/drive_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,16 @@ class DrivePage extends HookConsumerWidget {
onPressed:
() => context.push('/settings/accounts/$account/drive'),
child: Text(
'${t.misskey.inUse}: '
'${Unicode.LRI}'
'${prettyBytes(stats.usage)} / ${prettyBytes(stats.capacity)}'
'${Unicode.PDI}',
[
'${t.misskey.inUse}: ',
if (defaultTargetPlatform != TargetPlatform.linux)
Unicode.LRI,
prettyBytes(stats.usage),
' / ',
prettyBytes(stats.capacity),
if (defaultTargetPlatform != TargetPlatform.linux)
Unicode.PDI,
].join(),
),
),
if (!selectFiles && !selectFolder)
Expand Down
6 changes: 4 additions & 2 deletions lib/view/page/user/user_home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,8 @@ class _UserHome extends ConsumerWidget {
Text.rich(
TextSpan(
children: [
const TextSpan(text: Unicode.LRI),
if (defaultTargetPlatform != TargetPlatform.linux)
const TextSpan(text: Unicode.LRI),
TextSpan(text: '@${user.username}'),
TextSpan(
text: '@${toUnicode(user.host ?? account.host)}',
Expand All @@ -212,7 +213,8 @@ class _UserHome extends ConsumerWidget {
).colorScheme.onSurface.withValues(alpha: 0.5),
),
),
const TextSpan(text: Unicode.PDI),
if (defaultTargetPlatform != TargetPlatform.linux)
const TextSpan(text: Unicode.PDI),
if (user.isLocked)
const WidgetSpan(
alignment: PlaceholderAlignment.middle,
Expand Down
3 changes: 2 additions & 1 deletion lib/view/widget/mfm.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1178,7 +1178,8 @@ class _Mfm extends StatelessWidget {
@override
Widget build(BuildContext context) {
final needsIsolate =
builder != null || (trailingSpans?.isNotEmpty ?? false);
(builder != null || (trailingSpans?.isNotEmpty ?? false)) &&
defaultTargetPlatform != TargetPlatform.linux;
final span = TextSpan(
children: [
...?leadingSpans,
Expand Down
6 changes: 4 additions & 2 deletions lib/view/widget/note_header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ class NoteHeader extends HookConsumerWidget {
),
),
const WidgetSpan(child: SizedBox(width: 4.0)),
const TextSpan(text: Unicode.LRI),
if (defaultTargetPlatform != TargetPlatform.linux)
const TextSpan(text: Unicode.LRI),
TextSpan(text: '@${note.user.username}'),
if (note.user case User(:final host?))
TextSpan(
Expand All @@ -79,7 +80,8 @@ class NoteHeader extends HookConsumerWidget {
color: style.color?.withValues(alpha: 0.5),
),
),
const TextSpan(text: Unicode.PDI),
if (defaultTargetPlatform != TargetPlatform.linux)
const TextSpan(text: Unicode.PDI),
const WidgetSpan(child: SizedBox(width: 2.0)),
for (final role in note.user.badgeRoles)
if (role case UserBadgeRole(:final iconUrl?))
Expand Down
6 changes: 4 additions & 2 deletions lib/view/widget/timeline_header.dart
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ class TimelineHeader extends HookConsumerWidget {
),
if (oneLine) ...[
const WidgetSpan(child: SizedBox(width: 8.0)),
const TextSpan(text: Unicode.LRI),
if (defaultTargetPlatform != TargetPlatform.linux)
const TextSpan(text: Unicode.LRI),
TextSpan(
text: tabSettings.account.toString(),
style: DefaultTextStyle.of(context).style.apply(
Expand All @@ -128,7 +129,8 @@ class TimelineHeader extends HookConsumerWidget {
).colorScheme.onSurface.withValues(alpha: 0.85),
),
),
const TextSpan(text: Unicode.PDI),
if (defaultTargetPlatform != TargetPlatform.linux)
const TextSpan(text: Unicode.PDI),
],
],
),
Expand Down
Loading