diff --git a/README.md b/README.md new file mode 100644 index 0000000..8d5508a --- /dev/null +++ b/README.md @@ -0,0 +1,8 @@ +# Jade GUI + +The libadwaita/gtk based gui installer using jade as the backend + +[![Please do not theme this app](https://stopthemingmy.app/badge.svg)](https://stopthemingmy.app) + +![](placeholder) + diff --git a/main-page-screenshot.png b/main-page-screenshot.png new file mode 100644 index 0000000..5462289 Binary files /dev/null and b/main-page-screenshot.png differ diff --git a/src/window.js b/src/window.js index 715f91b..9d23746 100644 --- a/src/window.js +++ b/src/window.js @@ -28,8 +28,24 @@ export const JadeGuiWindow = GObject.registerClass({ _init(application) { super._init({ application }); this._quitButton.connect('clicked', () => { - log('Quit!'); + confirm_quit(); }); } }); +function confirm_quit() { + const quitDialog = new Gtk.MessageDialog({ + text: "Do you want to try\nCrystal without installing?", + transient_for: JadeGuiWindow, + modal: true, + buttons: Gtk.ButtonsType.Ok, + }); + + quitDialog.connect("response", () => { + quitDialog.close(); + }); + + quitDialog.present(); + +} +