From c46fc73c34866bb10ab690630a2c262057fb5b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Eric=20Janouch?= Date: Sun, 2 Nov 2025 02:07:42 +0100 Subject: [PATCH] Prefill the 'Enter location' dialog --- fiv-sidebar.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/fiv-sidebar.c b/fiv-sidebar.c index 900c8a8..5445fd0 100644 --- a/fiv-sidebar.c +++ b/fiv-sidebar.c @@ -537,6 +537,13 @@ on_show_enter_location( g_signal_connect(entry, "changed", G_CALLBACK(on_enter_location_changed), self); + GFile *location = fiv_io_model_get_location(self->model); + if (location) { + gchar *parse_name = g_file_get_parse_name(location); + gtk_entry_set_text(GTK_ENTRY(entry), parse_name); + g_free(parse_name); + } + // Can't have it ellipsized and word-wrapped at the same time. GtkWidget *protocols = gtk_label_new(""); gtk_label_set_ellipsize(GTK_LABEL(protocols), PANGO_ELLIPSIZE_END);