fix: some lr issues (#7848)

Co-authored-by: Lucas.Xu <lucas.xu@appflowy.io>
This commit is contained in:
Morn 2025-04-28 22:13:13 +08:00 committed by GitHub
parent fb33e4d5c3
commit 9353863439
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 7 additions and 10 deletions

View File

@ -39,9 +39,11 @@ Future<bool> afLaunchUri(
);
}
// on Linux or Android, add http scheme to the url if it is not present
// on Linux or Android or Windows, add http scheme to the url if it is not present
if ((UniversalPlatform.isLinux ||
UniversalPlatform.isAndroid) && !isURL(url, {'require_protocol': true})) {
UniversalPlatform.isAndroid ||
UniversalPlatform.isWindows) &&
!isURL(url, {'require_protocol': true})) {
uri = Uri.parse('https://$url');
}

View File

@ -423,6 +423,7 @@ class _LinkEditMenuState extends State<LinkEditMenu> {
return;
}
widget.onApply.call(linkInfo);
onDismiss();
}
void onConfirm() {

View File

@ -16,6 +16,7 @@ import 'package:appflowy/workspace/presentation/home/home_sizes.dart';
import 'package:appflowy/workspace/presentation/home/navigation.dart';
import 'package:appflowy/workspace/presentation/home/tabs/tabs_manager.dart';
import 'package:appflowy/workspace/presentation/home/toast.dart';
import 'package:appflowy/workspace/presentation/notifications/number_red_dot.dart';
import 'package:appflowy_backend/dispatch/dispatch.dart';
import 'package:appflowy_backend/protobuf/flowy-folder/view.pb.dart';
import 'package:appflowy_backend/protobuf/flowy-user/user_profile.pb.dart';
@ -65,14 +66,7 @@ class _HomeStackState extends State<HomeStack> with WindowListener {
builder: (context, state) => Column(
children: [
if (UniversalPlatform.isWindows)
Column(
mainAxisSize: MainAxisSize.min,
children: [
WindowTitleBar(
leftChildren: [_buildToggleMenuButton(context)],
),
],
),
WindowTitleBar(leftChildren: [_buildToggleMenuButton(context)]),
Padding(
padding: EdgeInsets.only(left: widget.layout.menuSpacing),
child: TabsManager(