mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-02-10 10:24:13 +00:00
add is_sensitive_input argument
This commit is contained in:
parent
0b1bdb43b5
commit
7fc6cad8b5
@ -284,7 +284,12 @@ impl Page {
|
||||
let description = gformat!("{placeholder}");
|
||||
|
||||
// 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
|
||||
meta.borrow_mut().status = Some(status);
|
||||
|
@ -34,6 +34,7 @@ impl Input {
|
||||
base: Uri,
|
||||
title: Option<&str>,
|
||||
size_limit: Option<usize>,
|
||||
is_sensitive_input: bool,
|
||||
) {
|
||||
self.widget.update(Some(
|
||||
&Response::new_arc(action_page_open, base, title, size_limit).gobject(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user