-
Couldn't load subscription status.
- Fork 88
Fix: Mobile MVP UI and feature fixes #19095
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
Changes from all commits
e68895b
5c42928
2e0fb18
a06d20b
2beedb9
ab7aead
3530bbf
af480d3
9c1f135
89dc797
9536097
6525505
fe18fa6
37e93af
72f77fe
ee07f3d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,7 +63,7 @@ method onFleetSet*(self: Module) = | |
| quit(QuitSuccess) # quits the app TODO: change this to logout instead when supported | ||
|
|
||
| method getLogDir*(self: Module): string = | ||
| return url_fromLocalFile(constants.LOGDIR) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| return constants.LOGDIR | ||
|
|
||
| method getWakuV2LightClientEnabled*(self: Module): bool = | ||
| return self.controller.getWakuV2LightClientEnabled() | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,7 +15,6 @@ import backend/group_chat as status_group_chat | |
| import app/global/[global_singleton, utils] | ||
| import app/core/eventemitter | ||
| import app/core/signals/types | ||
| import constants | ||
|
|
||
| import ../../common/message as message_common | ||
|
|
||
|
|
@@ -428,7 +427,6 @@ QtObject: | |
| slot: "onAsyncSendImagesDone", | ||
| chatId: chatId, | ||
| imagePathsJson: imagePathsJson, | ||
| tempDir: TMPDIR.replace("\\", "\\\\"), # Escape backslashes so that the JSON sent is valid (Windows issue) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| msg: msg, | ||
| replyTo: replyTo, | ||
| preferredUsername: preferredUsername, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,9 @@ | ||
| import QtQuick | ||
| import QtQuick.Controls | ||
|
|
||
| import StatusQ.Core | ||
| import StatusQ.Components | ||
| import StatusQ.Controls | ||
| import StatusQ.Popups | ||
| import StatusQ.Core.Theme | ||
|
|
||
| StatusIconTabButton { | ||
|
|
@@ -28,7 +28,7 @@ StatusIconTabButton { | |
| visible: statusNavBarTabButton.hovered && !!statusTooltip.text | ||
| delay: 50 | ||
| orientation: StatusToolTip.Orientation.Right | ||
| x: statusNavBarTabButton.width + 16 | ||
| x: statusNavBarTabButton.width + Theme.padding | ||
| y: statusNavBarTabButton.height / 2 - height / 2 + 4 | ||
| } | ||
|
|
||
|
|
@@ -62,36 +62,14 @@ StatusIconTabButton { | |
| border.width: 2 | ||
| } | ||
|
|
||
| StatusMouseArea { | ||
| anchors.fill: parent | ||
| cursorShape: Qt.PointingHandCursor | ||
| acceptedButtons: Qt.LeftButton | Qt.RightButton | ||
| onClicked: function(mouse) { | ||
| if (mouse.button === Qt.RightButton) { | ||
| if (!!popupMenuSlot.sourceComponent && !popupMenuSlot.active) | ||
| popupMenuSlot.active = true | ||
| if (popupMenuSlot.active) { | ||
| statusNavBarTabButton.highlighted = true | ||
| let btnWidth = statusNavBarTabButton.width | ||
| popupMenuSlot.item.popup(parent.x + btnWidth + 4, -2) | ||
| } | ||
| } else if (mouse.button === Qt.LeftButton) { | ||
| statusNavBarTabButton.toggle() | ||
| statusNavBarTabButton.clicked() | ||
| } | ||
| } | ||
| function openContextMenu(pos) { | ||
| if (!popupMenu) | ||
| return | ||
| const menu = popupMenu.createObject(statusNavBarTabButton) | ||
| statusTooltip.hide() | ||
| menu.popup(pos) | ||
| } | ||
|
|
||
| Loader { | ||
| id: popupMenuSlot | ||
| sourceComponent: statusNavBarTabButton.popupMenu | ||
| active: false | ||
| onLoaded: { | ||
| popupMenuSlot.item.closeHandler = function () { | ||
| statusNavBarTabButton.highlighted = false | ||
| popupMenuSlot.active = false | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This would close the submenu if not using cascaded menus, e.g on Android; each menu/submenu is a toplevel one |
||
| } | ||
| } | ||
| } | ||
| ContextMenu.onRequested: pos => openContextMenu(pos) | ||
| onPressAndHold: openContextMenu(Qt.point(statusNavBarTabButton.pressX, statusNavBarTabButton.pressY)) | ||
| } | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made the TS file check optional; there's a Qt bug which doesn't catch
qsTr()calls inside JS backticksCC @siddarthkay @markoburcul
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Like here:
status-desktop/ui/app/AppLayouts/Onboarding/pages/KeycardEnterPinPage.qml
Lines 126 to 129 in 59bb23e