Browse Source

add is_sensitive_input argument

master
yggverse 1 month ago
parent
commit
7fc6cad8b5
  1. 7
      src/app/browser/window/tab/item/page.rs
  2. 1
      src/app/browser/window/tab/item/page/input.rs

7
src/app/browser/window/tab/item/page.rs

@ -284,7 +284,12 @@ impl Page {
let description = gformat!("{placeholder}"); let description = gformat!("{placeholder}");
// Make input form // Make input form
input.set_new_response(action_page_open, uri, Some(&description), Some(1024)); input.set_new_response(
action_page_open, uri,
Some(&description),
Some(1024),
"11" == code.as_str() // sensitive input
);
// Update meta // Update meta
meta.borrow_mut().status = Some(status); meta.borrow_mut().status = Some(status);

1
src/app/browser/window/tab/item/page/input.rs

@ -34,6 +34,7 @@ impl Input {
base: Uri, base: Uri,
title: Option<&str>, title: Option<&str>,
size_limit: Option<usize>, size_limit: Option<usize>,
is_sensitive_input: bool,
) { ) {
self.widget.update(Some( self.widget.update(Some(
&Response::new_arc(action_page_open, base, title, size_limit).gobject(), &Response::new_arc(action_page_open, base, title, size_limit).gobject(),

Loading…
Cancel
Save