Skip to content

Commit

Permalink
test macOS python update again
Browse files Browse the repository at this point in the history
  • Loading branch information
MAKOMO committed Oct 3, 2023
1 parent 877e344 commit f46d357
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ environment:
# Set the Appveyor Python version for windows, macos and linux here. Does not affect windows_legacy.
PYTHON_V: 3.11
# Upgrade to specific version (for platforms supporting upgrade). Upgrade skipped if env var is missing or blank.
# PYUPGRADE_V: 3.11.5
PYUPGRADE_V: 3.11.5

matrix:
- job_name: windows_legacy
Expand Down
6 changes: 4 additions & 2 deletions src/artisanlib/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -17393,7 +17393,7 @@ def settingsLoad(self, filename=None, theme=False, machine=False, redraw=True):
# the dpi is set on creating the FigureCanvas
try:
if self.dpi != toInt(settings.value('dpi',self.dpi)):
self.setdpi(toInt(settings.value('dpi',self.dpi)),moveWindow=True)
self.setdpi(max(40,toInt(settings.value('dpi',self.dpi))),moveWindow=True)
except Exception as e: # pylint: disable=broad-except
_log.exception(e)
#restore geometry
Expand Down Expand Up @@ -18894,7 +18894,9 @@ def saveAllSettings(self, settings:QSettings, default_settings:Optional[Dict[str
self.settingsSetValue(settings, default_settings, 'appearance',self.appearance, read_defaults)
except Exception: # pylint: disable=broad-except
pass
self.settingsSetValue(settings, default_settings, 'dpi',self.dpi, read_defaults)

if not read_defaults:
settings.setValue('dpi',self.dpi) # no defaults cache used here to ensure that this one is always writ

self.settingsSetValue(settings, default_settings, 'recentRoasts',self.recentRoasts, read_defaults)

Expand Down

0 comments on commit f46d357

Please sign in to comment.