summary refs log tree commit diff
path: root/resources/qml/dialogs/ImagePackSettingsDialog.qml
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2021-08-06 04:31:30 +0200
committerNicolas Werner <nicolas.werner@hotmail.de>2021-08-06 04:31:53 +0200
commite5a6b2b6efcb56072146aad5996132070f9c2078 (patch)
tree7d3385d3dd5cf0dea9152538fa59c03693d9b932 /resources/qml/dialogs/ImagePackSettingsDialog.qml
parentAllow uploading additional stickers (diff)
downloadnheko-e5a6b2b6efcb56072146aad5996132070f9c2078.tar.xz
Allow creating new packs
Diffstat (limited to 'resources/qml/dialogs/ImagePackSettingsDialog.qml')
-rw-r--r--resources/qml/dialogs/ImagePackSettingsDialog.qml28
1 files changed, 28 insertions, 0 deletions
diff --git a/resources/qml/dialogs/ImagePackSettingsDialog.qml b/resources/qml/dialogs/ImagePackSettingsDialog.qml
index c57867fd..5181619c 100644
--- a/resources/qml/dialogs/ImagePackSettingsDialog.qml
+++ b/resources/qml/dialogs/ImagePackSettingsDialog.qml
@@ -62,6 +62,34 @@ ApplicationWindow {
                     enabled: !Settings.mobileMode
                 }
 
+                footer: ColumnLayout {
+                    Button {
+                        palette: Nheko.colors
+                        onClicked: {
+                            var dialog = packEditor.createObject(timelineRoot, {
+                                "imagePack": packlist.newPack(false)
+                            });
+                            dialog.show();
+                        }
+                        width: packlist.width
+                        visible: !packlist.containsAccountPack
+                        text: qsTr("Create account pack")
+                    }
+
+                    Button {
+                        palette: Nheko.colors
+                        onClicked: {
+                            var dialog = packEditor.createObject(timelineRoot, {
+                                "imagePack": packlist.newPack(true)
+                            });
+                            dialog.show();
+                        }
+                        width: packlist.width
+                        text: qsTr("New room pack")
+                    }
+
+                }
+
                 delegate: AvatarListTile {
                     id: packItem