diff --git a/openlp/core/common/i18n.py b/openlp/core/common/i18n.py index c7c3b8d55..52d2d57e8 100644 --- a/openlp/core/common/i18n.py +++ b/openlp/core/common/i18n.py @@ -445,6 +445,11 @@ class UiStrings(metaclass=Singleton): self.Seconds = translate('OpenLP.Ui', 's', 'The abbreviated unit for seconds') self.SaveAndClose = translate('OpenLP.ui', translate('SongsPlugin.EditSongForm', '&Save && Close')) self.SaveAndPreview = translate('OpenLP.Ui', 'Save && Preview') + self.ScreenSetupHasChangedTitle = translate('OpenLP.MainWindow', 'Screen setup has changed') + self.ScreenSetupHasChanged = translate('OpenLP.MainWindow', + 'The screen setup has changed. OpenLP will try to ' + 'automatically select a display screen, but ' + 'you should consider updating the screen settings.') self.Search = translate('OpenLP.Ui', 'Search') self.SearchThemes = translate('OpenLP.Ui', 'Search Themes...', 'Search bar place holder text ') self.SelectDelete = translate('OpenLP.Ui', 'You must select an item to delete.') diff --git a/openlp/core/ui/mainwindow.py b/openlp/core/ui/mainwindow.py index 99d9002e1..2dc3798ba 100644 --- a/openlp/core/ui/mainwindow.py +++ b/openlp/core/ui/mainwindow.py @@ -1035,11 +1035,10 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, LogMixin, RegistryPropert and (datetime.now() - self.screen_change_timestamp).seconds < 5 should_show_messagebox = self.settings_form.isHidden() and not has_shown_messagebox_recently if should_show_messagebox: - QtWidgets.QMessageBox.information(self, translate('OpenLP.MainWindow', 'Screen setup has changed'), - translate('OpenLP.MainWindow', - 'The screen setup has changed. OpenLP will try to ' - 'automatically select a display screen, but ' - 'you should consider updating the screen settings.'), + self.live_controller.toggle_display('desktop') + QtWidgets.QMessageBox.information(self, + UiStrings().ScreenSetupHasChangedTitle, + UiStrings().ScreenSetupHasChanged, QtWidgets.QMessageBox.StandardButtons(QtWidgets.QMessageBox.Ok)) self.screen_change_timestamp = datetime.now() self.application.set_busy_cursor()