Fix open bookmark external browser

This commit is contained in:
Juan Gilsanz Polo
2024-02-29 00:49:10 +01:00
parent 77bf5ed3da
commit 3506832f99
3 changed files with 3 additions and 3 deletions

View File

@@ -101,7 +101,7 @@ class Bookmarks extends _$Bookmarks {
void selectBookmark(Bookmark bookmark, double width) {
if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == true) {
ref.watch(routerProvider).push(RoutesPaths.webview, extra: bookmark);
} else if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == true) {
} else if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == false) {
openUrl(bookmark.url!);
}
state.selectedBookmark = bookmark;

View File

@@ -107,7 +107,7 @@ class SearchBookmarks extends _$SearchBookmarks {
void selectBookmark(Bookmark bookmark, double width) {
if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == true) {
ref.watch(routerProvider).push(RoutesPaths.webview, extra: bookmark);
} else if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == true) {
} else if (width <= Sizes.tabletBreakpoint && ref.watch(appStatusProvider).useInAppBrowser == false) {
openUrl(bookmark.url!);
}
state.selectedBookmark = bookmark;