desktop: use location instead of url

URL might be a bit misleading when you can also use local files as bookmarks.
This commit is contained in:
sleepycatcoding 2024-04-02 19:27:25 +03:00 committed by Nathan Adams
parent 02a27db372
commit 9cab16eb68
2 changed files with 2 additions and 3 deletions

View File

@ -3,6 +3,5 @@ bookmark-dialog-add = Add Bookmark
bookmarks-dialog-name = Name bookmarks-dialog-name = Name
bookmarks-dialog-location = Location bookmarks-dialog-location = Location
bookmarks-dialog-url = URL
bookmarks-dialog-no-bookmarks = There are no bookmarks right now bookmarks-dialog-no-bookmarks = There are no bookmarks right now
bookmarks-dialog-not-selected = Nothing to show bookmarks-dialog-not-selected = Nothing to show

View File

@ -46,7 +46,7 @@ impl BookmarkAddDialog {
ui.text_edit_singleline(&mut self.name); ui.text_edit_singleline(&mut self.name);
ui.end_row(); ui.end_row();
ui.label(text(locale, "bookmarks-dialog-url")); ui.label(text(locale, "bookmarks-dialog-location"));
self.url.ui(locale, ui); self.url.ui(locale, ui);
ui.end_row(); ui.end_row();
}); });
@ -234,7 +234,7 @@ impl BookmarksDialog {
let previous_url = bookmark.url.value().cloned(); let previous_url = bookmark.url.value().cloned();
ui.label(text(locale, "bookmarks-dialog-url")); ui.label(text(locale, "bookmarks-dialog-location"));
let current_url = bookmark.url.ui(locale, ui).value(); let current_url = bookmark.url.ui(locale, ui).value();
// TOOD: Change the UrlOrPathField widget to return a response instead, so we can update when we lose the focus, removes the need to clone every redraw. // TOOD: Change the UrlOrPathField widget to return a response instead, so we can update when we lose the focus, removes the need to clone every redraw.