Clean up no longer needed code
This commit is contained in:
@@ -25,7 +25,7 @@ from __future__ import annotations
|
||||
|
||||
from PyQt5.QtCore import QCoreApplication, QT_TRANSLATE_NOOP
|
||||
|
||||
from novelwriter.enum import nwAlert, nwBuildFmt, nwItemClass, nwItemLayout, nwOutline
|
||||
from novelwriter.enum import nwBuildFmt, nwItemClass, nwItemLayout, nwOutline
|
||||
|
||||
|
||||
def trConst(text: str) -> str:
|
||||
@@ -165,12 +165,6 @@ class nwLabels:
|
||||
nwItemLayout.DOCUMENT: QT_TRANSLATE_NOOP("Constant", "Novel Document"),
|
||||
nwItemLayout.NOTE: QT_TRANSLATE_NOOP("Constant", "Project Note"),
|
||||
}
|
||||
ALERT_NAME = {
|
||||
nwAlert.INFO: QT_TRANSLATE_NOOP("Constant", "Information"),
|
||||
nwAlert.WARN: QT_TRANSLATE_NOOP("Constant", "Warning"),
|
||||
nwAlert.ERROR: QT_TRANSLATE_NOOP("Constant", "Error"),
|
||||
nwAlert.ASK: QT_TRANSLATE_NOOP("Constant", "Question"),
|
||||
}
|
||||
ITEM_DESCRIPTION = {
|
||||
"none": QT_TRANSLATE_NOOP("Constant", "None"),
|
||||
"root": QT_TRANSLATE_NOOP("Constant", "Root Folder"),
|
||||
|
||||
@@ -119,16 +119,6 @@ class nwDocInsert(Enum):
|
||||
# END Enum nwDocInsert
|
||||
|
||||
|
||||
class nwAlert(Enum):
|
||||
|
||||
INFO = 0
|
||||
WARN = 1
|
||||
ERROR = 2
|
||||
ASK = 3
|
||||
|
||||
# END Enum nwAlert
|
||||
|
||||
|
||||
class nwView(Enum):
|
||||
|
||||
EDITOR = 0
|
||||
|
||||
+1
-13
@@ -59,7 +59,6 @@ from novelwriter.tools.lipsum import GuiLipsum
|
||||
from novelwriter.tools.manuscript import GuiManuscript
|
||||
from novelwriter.tools.projwizard import GuiProjectWizard
|
||||
from novelwriter.tools.writingstats import GuiWritingStats
|
||||
from novelwriter.core.project import NWProject
|
||||
from novelwriter.core.coretools import ProjectBuilder
|
||||
|
||||
from novelwriter.enum import (
|
||||
@@ -333,9 +332,7 @@ class GuiMain(QMainWindow):
|
||||
return
|
||||
|
||||
def postLaunchTasks(self, cmdOpen: str | None) -> None:
|
||||
"""This function is called after the main window is created to
|
||||
determine what to open or show after initialisation.
|
||||
"""
|
||||
"""Process tasks after the main window has been created."""
|
||||
if cmdOpen:
|
||||
logger.info("Command line path: %s", cmdOpen)
|
||||
self.openProject(cmdOpen)
|
||||
@@ -350,15 +347,6 @@ class GuiMain(QMainWindow):
|
||||
|
||||
return
|
||||
|
||||
##
|
||||
# Properties
|
||||
##
|
||||
|
||||
@property
|
||||
def project(self) -> NWProject:
|
||||
"""The project instance."""
|
||||
return SHARED.project
|
||||
|
||||
##
|
||||
# Project Actions
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user