ui changes

This commit is contained in:
WorldTeacher
2024-06-03 15:18:02 +02:00
parent ecf7ac1fea
commit a19dc12c18
11 changed files with 743 additions and 227 deletions

View File

@@ -10,6 +10,7 @@ from .dialog_sources.Ui_mail_preview import Ui_eMailPreview as Ui_Dialog
config = OmegaConf.load("config.yaml")
from src.logic.log import MyLogger
from src.utils import Icon
logger = MyLogger("Mail")
@@ -46,6 +47,8 @@ class Mail_Dialog(QtWidgets.QDialog, Ui_Dialog):
self.load_mail_templates()
# if none of the radio buttons is checked, disable the accept button of the dialog
self.btn_okay.setEnabled(False)
Icon("edit_note").set_icon(self.newTemplate)
self.newTemplate.clicked.connect(self.open_new_template)
if default_mail is not None:
# get the nearest match to the default mail
@@ -67,6 +70,10 @@ class Mail_Dialog(QtWidgets.QDialog, Ui_Dialog):
# self.mail_name.setText(data["mail_name"])
# # assign data["general"] to self.data
# self.data = data["general"]
def open_new_template(self):
logger.log_info("Opening new template dialog")
# TODO: implement new mail template dialog
pass
def determine_signature(self):
if config.mail.signature is None: