forked from openlp/openlp
Merge branch 'fixes_june_2' into 'master'
Fixes june 2 - missed change See merge request openlp/openlp!211
This commit is contained in:
commit
14aa717272
@ -42,6 +42,7 @@ from openlp.core.common.i18n import LanguageManager, UiStrings, translate
|
|||||||
from openlp.core.common.mixins import LogMixin, RegistryProperties
|
from openlp.core.common.mixins import LogMixin, RegistryProperties
|
||||||
from openlp.core.common.path import create_paths
|
from openlp.core.common.path import create_paths
|
||||||
from openlp.core.common.registry import Registry
|
from openlp.core.common.registry import Registry
|
||||||
|
from openlp.core.common.settings import Settings
|
||||||
from openlp.core.display.screens import ScreenList
|
from openlp.core.display.screens import ScreenList
|
||||||
from openlp.core.lib.plugin import PluginStatus
|
from openlp.core.lib.plugin import PluginStatus
|
||||||
from openlp.core.lib.ui import create_action
|
from openlp.core.lib.ui import create_action
|
||||||
@ -868,7 +869,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, LogMixin, RegistryPropert
|
|||||||
create_paths(temp_dir_path)
|
create_paths(temp_dir_path)
|
||||||
temp_config_path = temp_dir_path / import_file_path.name
|
temp_config_path = temp_dir_path / import_file_path.name
|
||||||
shutil.copyfile(import_file_path, temp_config_path)
|
shutil.copyfile(import_file_path, temp_config_path)
|
||||||
import_settings = QtCore.QSettings(str(temp_config_path), QtCore.QSettings.IniFormat)
|
import_settings = Settings(str(temp_config_path), QtCore.QSettings.IniFormat)
|
||||||
|
|
||||||
self.log_info('hook upgrade_plugin_settings')
|
self.log_info('hook upgrade_plugin_settings')
|
||||||
self.plugin_manager.hook_upgrade_plugin_settings(import_settings)
|
self.plugin_manager.hook_upgrade_plugin_settings(import_settings)
|
||||||
|
Loading…
Reference in New Issue
Block a user