4697 @param mode mode of the email dialog (string, "bug" or "feature") |
4697 @param mode mode of the email dialog (string, "bug" or "feature") |
4698 @param attachFile name of a file to attach to the email (string) |
4698 @param attachFile name of a file to attach to the email (string) |
4699 @param deleteAttachFile flag indicating to delete the attached file |
4699 @param deleteAttachFile flag indicating to delete the attached file |
4700 after it has been sent (boolean) |
4700 after it has been sent (boolean) |
4701 """ |
4701 """ |
|
4702 from .EmailDialog import EmailDialog |
|
4703 |
4702 if Preferences.getUser("UseSystemEmailClient"): |
4704 if Preferences.getUser("UseSystemEmailClient"): |
4703 self.__showSystemEmailClient(mode, attachFile, deleteAttachFile) |
4705 self.__showSystemEmailClient(mode, attachFile, deleteAttachFile) |
4704 else: |
4706 else: |
4705 if not Preferences.getUser("UseGoogleMailOAuth2") and ( |
4707 if not Preferences.getUser("UseGoogleMailOAuth2") and ( |
4706 Preferences.getUser("Email") == "" |
4708 Preferences.getUser("Email") == "" |
4715 """ Preferences Dialog.""" |
4717 """ Preferences Dialog.""" |
4716 ), |
4718 ), |
4717 ) |
4719 ) |
4718 self.showPreferences("emailPage") |
4720 self.showPreferences("emailPage") |
4719 return |
4721 return |
4720 |
|
4721 from .EmailDialog import EmailDialog # __IGNORE_WARNING_I101__ |
|
4722 |
4722 |
4723 self.dlg = EmailDialog(mode=mode) |
4723 self.dlg = EmailDialog(mode=mode) |
4724 if attachFile is not None: |
4724 if attachFile is not None: |
4725 self.dlg.attachFile(attachFile, deleteAttachFile) |
4725 self.dlg.attachFile(attachFile, deleteAttachFile) |
4726 self.dlg.show() |
4726 self.dlg.show() |