Move status and importance to data class
This commit is contained in:
@@ -28,6 +28,7 @@ import logging
|
||||
from novelwriter.common import (
|
||||
checkBool, checkInt, checkStringNone, simplified
|
||||
)
|
||||
from novelwriter.core.status import NWStatus
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -53,6 +54,9 @@ class NWProjectData:
|
||||
self._lastCount = {}
|
||||
self._currCount = {}
|
||||
|
||||
self._status = NWStatus(NWStatus.STATUS)
|
||||
self._import = NWStatus(NWStatus.IMPORT)
|
||||
|
||||
# Internal
|
||||
self._changed = False
|
||||
|
||||
@@ -102,6 +106,14 @@ class NWProjectData:
|
||||
def spellLang(self):
|
||||
return self._spellLang
|
||||
|
||||
@property
|
||||
def itemStatus(self):
|
||||
return self._status
|
||||
|
||||
@property
|
||||
def itemImport(self):
|
||||
return self._import
|
||||
|
||||
@property
|
||||
def changed(self):
|
||||
return self._changed
|
||||
|
||||
Reference in New Issue
Block a user