Move GUI theme instance to the config object (after app creation)

This commit is contained in:
Veronica Berglyd Olsen committed 2023-08-08 14:35:55 +02:00
1 parent c50c8ee73a
commit 94c95d6f67
30 files changed
+319 -390

No files matched your search

-2
View File
@@ -34,8 +34,6 @@ from novelwriter.dialogs.about import GuiAbout
def testDlgAbout_NWDialog(qtbot, monkeypatch, nwGUI):
"""Test the novelWriter about dialogs."""
# NW About
nwGUI.mainTheme.themeName = "A Theme"
nwGUI.mainTheme.themeAuthor = "An Author"
assert nwGUI.showAboutNWDialog(showNotes=True) is True
qtbot.waitUntil(lambda: getGuiItem("GuiAbout") is not None, timeout=1000)