add is_sensitive_input argument

This commit is contained in:
yggverse 2024-10-17 08:26:10 +03:00
parent 0b1bdb43b5
commit 7fc6cad8b5
2 changed files with 7 additions and 1 deletions

View File

@ -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);

View File

@ -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(),