From: Alan Date: Wed, 20 Mar 2024 08:53:05 +0000 (+0800) Subject: src/Builder4/PopoverFileDetails.bjs X-Git-Url: http://git.roojs.org/?a=commitdiff_plain;h=84fa629321548951068308e3f421416e6c92f1ae;p=roobuilder src/Builder4/PopoverFileDetails.bjs src/Builder4/PopoverFileDetails.vala --- diff --git a/src/Builder4/PopoverFileDetails.bjs b/src/Builder4/PopoverFileDetails.bjs index 80758c3ff..6026f7318 100644 --- a/src/Builder4/PopoverFileDetails.bjs +++ b/src/Builder4/PopoverFileDetails.bjs @@ -462,10 +462,13 @@ "", "", "\tif (_this.name.el.get_text().length < 1) {", - "\t Xcls_StandardErrorDialog.singleton().show(", + "\t var msg = new Adw.MessageDialog(", "\t _this.mainwindow.el,", + "\t \"Opps\",", "\t \"You have to set a Component name \"", "\t );", + "\t msg.modal = true;", + "\t msg.present();", "\t ", "\t return;", "\t}", diff --git a/src/Builder4/PopoverFileDetails.vala b/src/Builder4/PopoverFileDetails.vala index f4dfdb3f0..59a720ea7 100644 --- a/src/Builder4/PopoverFileDetails.vala +++ b/src/Builder4/PopoverFileDetails.vala @@ -1337,10 +1337,13 @@ public class Xcls_PopoverFileDetails : Object if (_this.name.el.get_text().length < 1) { - Xcls_StandardErrorDialog.singleton().show( + var msg = new Adw.MessageDialog( _this.mainwindow.el, + "Opps", "You have to set a Component name " ); + msg.modal = true; + msg.present(); return; }