Skip to content

Commit

Permalink
feat(AppMain): Replace MailserverConnectionDialog with banner
Browse files Browse the repository at this point in the history
Close #6213
  • Loading branch information
MishkaRogachev committed Jan 30, 2023
1 parent 128ac8d commit e0ba80a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 59 deletions.
1 change: 0 additions & 1 deletion test/ui-test/src/screens/StatusWalletScreen.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ class MainWalletScreen(Enum):
SAVED_ADDRESSES_BUTTON: str = "mainWallet_Saved_Addresses_Button"
NETWORK_SELECTOR_BUTTON: str = "mainWallet_Network_Selector_Button"
RIGHT_SIDE_TABBAR: str = "mainWallet_Right_Side_Tab_Bar"
MAILSERVER_RETRY: str = "mailserver_retry"
FIRST_ACCOUNT_ITEM: str = "firstWalletAccount_Item"
EPHEMERAL_NOTIFICATION_LIST: str = "mainWallet_Ephemeral_Notification_List"
TOTAL_CURRENCY_BALANCE: str = "mainWallet_totalCurrencyBalance"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
mainWallet_Right_Side_Tab_Bar = {"container": statusDesktop_mainWindow, "objectName": "rightSideWalletTabBar", "type": "StatusTabBar"}
mainWallet_Ephemeral_Notification_List = {"container": statusDesktop_mainWindow, "objectName": "ephemeralNotificationList", "type": "StatusListView"}

mailserver_dialog = {"container": statusDesktop_mainWindow_overlay, "objectName": "mailserverConnectionDialog", "type": "StatusDialog"}
mailserver_retry = {"container": mailserver_dialog, "objectName": "mailserverConnectionDialog_retryButton", "type": "StatusButton"}

accounts_StatusListView = {"container": statusDesktop_mainWindow, "objectName": "walletAccountsListView", "type": "StatusListView", "visible": True}
firstWalletAccount_Item = {"container": accounts_StatusListView, "index": 0, "objectName": "walletAccountItem", "type": "StatusListItem", "visible": True}

Expand Down
21 changes: 9 additions & 12 deletions ui/app/mainui/AppMain.qml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ import AppLayouts.stores 1.0

import SortFilterProxyModel 0.2

import "popups"
import "panels"
import "activitycenter/popups"
import "activitycenter/stores"
Expand Down Expand Up @@ -70,7 +69,7 @@ Item {
}

onMailserverNotWorking: {
Global.openPopup(mailserverNotWorkingPopupComponent)
mailserverConnectionBanner.show()
}

onActiveSectionChanged: {
Expand Down Expand Up @@ -714,7 +713,6 @@ Item {
}
}


ModuleWarning {
id: downloadingArchivesBanner
Layout.fillWidth: true
Expand All @@ -724,6 +722,14 @@ Item {
closeBtnVisible: false
}

ModuleWarning {
id: mailserverConnectionBanner
type: ModuleWarning.Danger
text: qsTr("Can not connect to mailserver. Retrying automatically")
onCloseClicked: hide()
Layout.fillWidth: true
}

Component {
id: connectedBannerComponent

Expand Down Expand Up @@ -1009,15 +1015,6 @@ Item {
}
} // ColumnLayout

Component {
id: mailserverNotWorkingPopupComponent
MailserverConnectionDialog {
onClosed: {
destroy()
}
}
}

Component {
id: chooseBrowserPopupComponent
ChooseBrowserPopup {
Expand Down
43 changes: 0 additions & 43 deletions ui/app/mainui/popups/MailserverConnectionDialog.qml

This file was deleted.

0 comments on commit e0ba80a

Please # to comment.