Add window.makePopup(), utils.makePopup() wrapper

This commit is contained in:
miruka
2020-08-03 01:26:35 -04:00
parent c813e92ac7
commit a389238024
12 changed files with 27 additions and 18 deletions

View File

@@ -74,7 +74,7 @@ Rectangle {
enabled: (events && events.length > 0) || events === null
sequences: window.settings.keys.removeFocusedOrSelectedMessages
onActivated: utils.makePopup(
onActivated: window.makePopup(
"Popups/RedactPopup.qml",
{
preferUserId: chat.userId,
@@ -200,7 +200,7 @@ Rectangle {
HShortcut {
sequences: window.settings.keys.clearRoomMessages
onActivated: utils.makePopup(
onActivated: window.makePopup(
"Popups/ClearMessagesPopup.qml",
{
userId: window.uiState.pageProperties.userId,
@@ -413,7 +413,7 @@ Rectangle {
const fullMxc =
forLink || (isAnimated(event) ? "" : event.media_url)
utils.makePopup(
window.makePopup(
"Popups/ImageViewerPopup/ImageViewerPopup.qml",
{
thumbnailTitle: getThumbnailTitle(event),