mirror of
https://github.com/timvisee/ffsend.git
synced 2025-10-06 02:29:57 +02:00
Add support for showing a QR code for a share URL after uploading
This commit is contained in:
parent
c068e4c143
commit
176775d9cf
5 changed files with 115 additions and 1 deletions
|
@ -109,6 +109,12 @@ impl<'a: 'b, 'b> UploadMatcher<'a> {
|
|||
None
|
||||
}
|
||||
}
|
||||
|
||||
/// Check whether to print a QR code for the share URL.
|
||||
#[cfg(feature = "qrcode")]
|
||||
pub fn qrcode(&self) -> bool {
|
||||
self.matches.is_present("qrcode")
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Matcher<'a> for UploadMatcher<'a> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue