Show fatal errors after export is terminated
This commit is contained in:
@ -9,6 +9,7 @@ Changelog [format](http://keepachangelog.com/en/1.0.0/)
|
|||||||
* GODT-764 Fix deadlock in integration tests for Import-Export.
|
* GODT-764 Fix deadlock in integration tests for Import-Export.
|
||||||
* GODT-662 Do not resume paused transfer progress after dismissing cancel popup.
|
* GODT-662 Do not resume paused transfer progress after dismissing cancel popup.
|
||||||
* GODT-772 Sanitize mailbox names for exporting to follow OS restrictions.
|
* GODT-772 Sanitize mailbox names for exporting to follow OS restrictions.
|
||||||
|
* GODT-771 Show fatal errors after export is terminated.
|
||||||
|
|
||||||
### Changed
|
### Changed
|
||||||
* Bump crypto version to v0.0.0-20200818122824-ed5d25e28db8
|
* Bump crypto version to v0.0.0-20200818122824-ed5d25e28db8
|
||||||
|
|||||||
@ -217,7 +217,10 @@ Dialog {
|
|||||||
Text {
|
Text {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
text: {
|
text: {
|
||||||
if (progressbarExport.isFinished) return qsTr("Export finished","todo")
|
if (progressbarExport.isFinished) {
|
||||||
|
if (go.progressDescription=="") return qsTr("Export finished","todo")
|
||||||
|
else return qsTr("Export failed: %1").arg(go.progressDescription)
|
||||||
|
}
|
||||||
if (
|
if (
|
||||||
go.progressDescription == gui.enums.progressInit ||
|
go.progressDescription == gui.enums.progressInit ||
|
||||||
(go.progress==0 && go.description=="")
|
(go.progress==0 && go.description=="")
|
||||||
|
|||||||
@ -72,7 +72,8 @@ func (p *PMAPIProvider) tryReconnect() error {
|
|||||||
|
|
||||||
func (p *PMAPIProvider) listMessages(filter *pmapi.MessagesFilter) (messages []*pmapi.Message, count int, err error) {
|
func (p *PMAPIProvider) listMessages(filter *pmapi.MessagesFilter) (messages []*pmapi.Message, count int, err error) {
|
||||||
err = p.ensureConnection(func() error {
|
err = p.ensureConnection(func() error {
|
||||||
key := fmt.Sprintf("%s_%d", filter.LabelID, filter.Page)
|
// Sort is used in the key so the filter is different for estimating and real fetching.
|
||||||
|
key := fmt.Sprintf("%s_%s_%d", filter.LabelID, filter.Sort, filter.Page)
|
||||||
p.timeIt.start("listing", key)
|
p.timeIt.start("listing", key)
|
||||||
defer p.timeIt.stop("listing", key)
|
defer p.timeIt.stop("listing", key)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user