Last pass of fixes and tweaks

This commit is contained in:
Veronica K. B. Olsen
2021-02-15 17:52:04 +01:00
parent 6d56bc7c0c
commit 31b665d344
6 changed files with 21 additions and 29 deletions
+2 -4
View File
@@ -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
)
)
-12
View File
@@ -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