Skip to content
This repository has been archived by the owner on Dec 12, 2023. It is now read-only.

Commit

Permalink
Fix issue with rename volume
Browse files Browse the repository at this point in the history
  • Loading branch information
davelebbing committed May 9, 2019
1 parent 9e29fdc commit fe6c2e9
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Imagr/MainController.py
Original file line number Diff line number Diff line change
Expand Up @@ -1991,11 +1991,9 @@ def eraseTargetVolume(self, name='Macintosh HD', format='Journaled HFS+', progre
NSLog("Error occured when erasing volume: %@", eraseErr)
self.errorMessage = eraseErr
NSLog("%@", eraseOut)
# Reload possible targets, because '/Volumes/Macintosh HD' might not exist
if name != 'Macintosh HD':
# If the volume was renamed, or isn't named 'Macintosh HD', then we should recheck the volume list
self.should_update_volume_list = True

# Reload possible targets because original target name might not exist
self.should_update_volume_list = True
self.targetVolume.EnsureMountedWithRefresh()

def copyLocalize_(self, item):
if 'keyboard_layout_name' in item:
Expand Down

0 comments on commit fe6c2e9

Please sign in to comment.