Remove unneeded storage enum
This commit is contained in:
@@ -242,8 +242,6 @@ class NWProject:
|
|||||||
SHARED.error(self.tr("Project file not found."))
|
SHARED.error(self.tr("Project file not found."))
|
||||||
elif status == NWStorageOpen.LOCKED:
|
elif status == NWStorageOpen.LOCKED:
|
||||||
self._state = NWProjectState.LOCKED
|
self._state = NWProjectState.LOCKED
|
||||||
elif status == NWStorageOpen.RECOVERY:
|
|
||||||
self._state = NWProjectState.RECOVERY
|
|
||||||
elif status == NWStorageOpen.FAILED:
|
elif status == NWStorageOpen.FAILED:
|
||||||
SHARED.error(self.tr("Failed to open project."), exc=self._storage.exc)
|
SHARED.error(self.tr("Failed to open project."), exc=self._storage.exc)
|
||||||
return False
|
return False
|
||||||
|
|||||||
@@ -51,9 +51,8 @@ class NWStorageOpen(Enum):
|
|||||||
UNKOWN = 0
|
UNKOWN = 0
|
||||||
NOT_FOUND = 1
|
NOT_FOUND = 1
|
||||||
LOCKED = 2
|
LOCKED = 2
|
||||||
RECOVERY = 3
|
FAILED = 3
|
||||||
FAILED = 4
|
READY = 4
|
||||||
READY = 5
|
|
||||||
|
|
||||||
# END Enum NWStorageOpen
|
# END Enum NWStorageOpen
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user