~julienxx/castor

castor: Fix missing input dialog message v1 PROPOSED

~spektom: 1
 Fix missing input dialog message

 1 files changed, 3 insertions(+), 1 deletions(-)
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~julienxx/castor/patches/20317/mbox | git am -3
Learn more about email & git

[PATCH castor] Fix missing input dialog message Export this patch

From: Michael Spector <spektom@gmail.com>

---
 src/dialog.rs | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/dialog.rs b/src/dialog.rs
index 485a5ec..6bfc760 100644
--- a/src/dialog.rs
+++ b/src/dialog.rs
@@ -43,7 +43,7 @@ pub fn error(gui: &Arc<Gui>, message: &str) {

pub fn input(gui: &Arc<Gui>, url: Url, message: &str) {
    let dialog = gtk::Dialog::new_with_buttons(
        Some(message),
        Some("Input"),
        Some(gui.window()),
        gtk::DialogFlags::MODAL,
        &[
@@ -53,6 +53,8 @@ pub fn input(gui: &Arc<Gui>, url: Url, message: &str) {
    );

    let content_area = dialog.get_content_area();
    let message = gtk::Label::new(Some(message));
    content_area.add(&message);
    let entry = gtk::Entry::new();
    content_area.add(&entry);

-- 
2.30.0