File: 000001-open_in_browser_comes_first.patch

package info (click to toggle)
alligator 25.08.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,244 kB
  • sloc: cpp: 1,755; xml: 571; makefile: 6; sh: 1
file content (33 lines) | stat: -rw-r--r-- 1,288 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
Description: Place the open in browser button first
 I noticed on my tablet that otherwise the open in browser ends up
 hidden in a drop down menu, and that is a common action while the
 bookmarking is not very common.
Author: Salvo 'LtWorf' Tomaselli <ltworf@debian.org>
Forwarded: https://invent.kde.org/network/alligator/-/merge_requests/140 
Last-Update: 2025-04-21

--- alligator-25.04.0.orig/src/qml/EntryPage.qml
+++ alligator-25.04.0/src/qml/EntryPage.qml
@@ -66,17 +66,17 @@ Kirigami.ScrollablePage {
 
     actions: [
         Kirigami.Action {
+            text: i18n("Open in Browser")
+            icon.name: "globe"
+            onTriggered: Qt.openUrlExternally(page.link)
+        },
+        Kirigami.Action {
             text: page.favorite ? i18nc("@action:button", "Remove from Favorites") : i18nc("@action:button", "Add to Favorites")
             icon.name: page.favorite ? "bookmarks-bookmarked" : "bookmarks"
             onTriggered: {
                 Database.setFavorite(page.entryId, !page.favorite);
                 page.favorite = !page.favorite;
             }
-        },
-        Kirigami.Action {
-            text: i18n("Open in Browser")
-            icon.name: "globe"
-            onTriggered: Qt.openUrlExternally(page.link)
         }
     ]
 }