fix: code review

This commit is contained in:
Richard Ramos 2020-10-08 09:05:35 -04:00 committed by Iuri Matias
parent 11ae6529e2
commit 5ff809b6b8
1 changed files with 1 additions and 10 deletions

View File

@ -1,5 +1,5 @@
import NimQml, sequtils, strutils, sugar, os
import views/[mailservers_list, ens_manager, contact_list, profile_info, device_list, dapp_list, permission_list]
import views/[mailservers_list, ens_manager, contact_list, profile_info, device_list, dapp_list]
import ../../status/profile/[mailserver, profile, devices]
import ../../status/profile as status_profile
import ../../status/contacts as status_contacts
@ -23,7 +23,6 @@ QtObject:
blockedContacts*: ContactList
deviceList*: DeviceList
dappList*: DappList
permissionList*: PermissionList
network: string
status*: Status
isDeviceSetup: bool
@ -43,7 +42,6 @@ QtObject:
if not self.ens.isNil: self.ens.delete
if not self.profile.isNil: self.profile.delete
if not self.dappList.isNil: self.dappList.delete
if not self.permissionList.isNil: self.permissionList.delete
self.QObject.delete
proc newProfileView*(status: Status, changeLanguage: proc(locale: string)): ProfileView =
@ -56,7 +54,6 @@ QtObject:
result.blockedContacts = newContactList()
result.deviceList = newDeviceList()
result.dappList = newDappList(status)
result.permissionList = newPermissionList(status)
result.ens = newEnsManager(status)
result.network = ""
result.status = status
@ -253,12 +250,6 @@ QtObject:
QtProperty[QVariant] dappList:
read = getDappList
proc getPermissionList(self: ProfileView): QVariant {.slot.} =
return newQVariant(self.permissionList)
QtProperty[QVariant] permissionList:
read = getPermissionList
proc getEnsManager(self: ProfileView): QVariant {.slot.} =
return newQVariant(self.ens)