fix confidential status being always set and show it in the download details

dbus-notify
Zlatin Balevsky 2022-06-24 17:41:15 +01:00
parent f6d824339e
commit 0499fb1ea1
No known key found for this signature in database
GPG Key ID: A72832072D525E41
3 changed files with 5 additions and 1 deletions

View File

@ -250,7 +250,8 @@ class NetworkDownloader extends Downloader {
activeWorkers.values().each {
rv &= it.confidential
}
confidential = rv
if (!activeWorkers.isEmpty())
confidential = rv
rv
}

View File

@ -132,6 +132,7 @@ SELECT_DOWNLOAD_VIEW_DETAILS=Select a download to view details
DOWNLOAD_LOCATION=Download Location
PIECE_SIZE=Piece Size
SEQUENTIAL=Sequential
CONFIDENTIAL=Confidential
KNOWN_SOURCES=Known Sources
ACTIVE_SOURCES=Active Sources
HOPELESS_SOURCES=Hopeless Sources

View File

@ -336,6 +336,8 @@ class MainFrameView {
label(text : bind {model.downloader?.getNPieces()}, constraints : gbc(gridx:6, gridy:0, insets : [0,0,0,20]))
label(text : trans("DONE_PIECES") + ":", constraints: gbc(gridx:5, gridy: 1))
label(text : bind {model.downloader?.donePieces()}, constraints : gbc(gridx:6, gridy:1, insets : [0,0,0,20]))
label(text : trans("CONFIDENTIAL") + ":", constraints: gbc(gridx:5, gridy: 2))
label(text : bind {model.downloader?.isConfidential()}, constraints: gbc(gridx: 6, gridy: 2, insets : [0,0,0,20]))
}
}
}