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:
parent
02a27db372
commit
9cab16eb68
|
@ -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
|
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue