Skip to content

Commit fc7ac95

Browse files
committed
Fix image loading bug
1 parent c126f74 commit fc7ac95

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

UIElements/backgroundMenu.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ def __init__(self, data, **kwargs):
2121
def updateAlignmentInConfig(self):
2222
self.data.config.set('Background Settings', 'manualReg',
2323
self.data.backgroundManualReg)
24+
self.data.config.set('Background Settings', 'backgroundfile',
25+
str(self.data.backgroundFile))
2426
self.data.config.write()
2527

2628
def openBackground(self):
@@ -121,9 +123,6 @@ def load(self, instance):
121123
filename = instance.path
122124
# Save the file in the config...
123125
self.data.backgroundFile = filename
124-
self.data.config.set('Background Settings',
125-
'backgroundfile', str(self.data.backgroundFile))
126-
self.data.config.write()
127126
# close the open file popup
128127
self.dismiss_popup()
129128
# new image loaded so clear manual alignment centers

0 commit comments

Comments
 (0)