Last pass of fixes and tweaks
This commit is contained in:
+2
-4
@@ -131,8 +131,7 @@ class NWDoc():
|
||||
if showStatus and not isOrphan:
|
||||
self.theParent.setStatus(
|
||||
self.tr("{0}: {1}").format(
|
||||
self.tr("Opened Document"),
|
||||
self._theItem.itemName
|
||||
self.tr("Opened Document"), self._theItem.itemName
|
||||
)
|
||||
)
|
||||
|
||||
@@ -180,8 +179,7 @@ class NWDoc():
|
||||
if self._theItem is not None:
|
||||
self.theParent.setStatus(
|
||||
self.tr("{0}: {1}").format(
|
||||
self.tr("Saved Document"),
|
||||
self._theItem.itemName
|
||||
self.tr("Saved Document"), self._theItem.itemName
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
@@ -30,9 +30,6 @@ import json
|
||||
import os
|
||||
|
||||
from time import time
|
||||
from functools import partial
|
||||
|
||||
from PyQt5.QtCore import QCoreApplication
|
||||
|
||||
from nw.constants import (
|
||||
nwFiles, nwKeyWords, nwItemType, nwItemClass, nwItemLayout, nwAlert
|
||||
@@ -68,11 +65,6 @@ class NWIndex():
|
||||
self._timeNotes = 0
|
||||
self._timeIndex = 0
|
||||
|
||||
self.clearIndex()
|
||||
|
||||
# Internal Mappings
|
||||
self.tr = partial(QCoreApplication.translate, "NWIndex")
|
||||
|
||||
return
|
||||
|
||||
##
|
||||
@@ -236,10 +228,6 @@ class NWIndex():
|
||||
|
||||
if self.indexBroken:
|
||||
self.clearIndex()
|
||||
self.theParent.makeAlert(
|
||||
self.tr("The project index is outdated or broken. Rebuilding index."),
|
||||
nwAlert.WARN
|
||||
)
|
||||
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user