You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# On the first run if there are legacy settings under "YourQuest" but no new settings under "artisan-scope" then the legacy settings
569
-
# will be copied to the new settings location. Once settings exist under "artisan-scope" the legacy settings under "YourQuest" will
570
-
# no longer be read or saved. At start-up, versions of Artisan before to v2.0 will no longer share settings with versions v2.0 and after.
571
-
# Settings can be shared among all versions of Artisan by explicitly saving and loading them using Help>Save/Load Settings.
572
-
573
-
settingsRelocated:bool = False
574
-
try:
575
-
app.setApplicationName(application_name) #needed by QSettings() to store windows geometry in operating system
576
-
577
-
app.setOrganizationName('YourQuest') #needed by QSettings() to store windows geometry in operating system
578
-
app.setOrganizationDomain('p.code.google.com') #needed by QSettings() to store windows geometry in operating system
579
-
legacysettings = QSettings()
580
-
app.setOrganizationName(application_organization_name) #needed by QSettings() to store windows geometry in operating system
581
-
app.setOrganizationDomain(application_organization_domain) #needed by QSettings() to store windows geometry in operating system
582
-
newsettings = QSettings()
583
-
584
-
# copy settings from legacy to new if newsettings do not exist, legacysettings do exist, and were not previously copied
585
-
if not newsettings.contains('Mode') and legacysettings.contains('Mode') and legacysettings.contains('_settingsCopied') and legacysettings.value('_settingsCopied') != 1:
# # provide information message to user about sharing settings at start-up
4145
-
if settingsRelocated:
4146
-
string = QApplication.translate('Message','Welcome to version {0} of artisan!').format(__version__) + '\n\n'
4147
-
string += QApplication.translate('Message','This is a one time message to inform you about a change in artisan.') + '\n\n'
4148
-
string += QApplication.translate('Message','If you never run older versions of artisan you can skip this message, the change does not affect you.') + ' '
4149
-
string += QApplication.translate('Message','artisan preserves all your configuration settings when you exit so they will automatically be available the next time you start artisan.') + ' '
4150
-
string += QApplication.translate('Message','Beginning with release v2.0, settings will no longer be automatically shared at start-up with versions before v2.0.') + '\n\n'
4151
-
string += QApplication.translate('Message','Do not worry. Since this is the first time you opened this new version artisan has already loaded your last used settings.') + '\n\n'
4152
-
string += QApplication.translate('Message',"To share settings between this version and artisan versions before v2.0 use 'Help>Save Settings' and 'Help>Load Settings'.") + '\n\n'
4153
-
string += QApplication.translate('Message','Enjoy using artisan, The artisan team')
4154
-
QMessageBox.information(self, QApplication.translate('Message','One time message about loading settings at start-up'),string)
4155
-
4156
4101
# provide information message to user about artisanViewer the first time it is started
4157
4102
if self.artisanviewerFirstStart:
4158
4103
string = QApplication.translate('Message','Welcome to the artisanViewer!').format(__version__) + '\n\n'
0 commit comments