Skip to content

Commit

Permalink
Merge pull request #69 from JonnyHaystack/bugfix/restore_programs_crash
Browse files Browse the repository at this point in the history
Fix crash when restoring programs
  • Loading branch information
JonnyHaystack committed Nov 18, 2019
2 parents 04dd490 + 9820c7b commit 0f0a1d1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion i3_resurrect/programs.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ def restore(workspace_name, saved_programs):
# Remove already running programs from the list of program to restore.
running_programs = get_programs(workspace_name, False)
for program in running_programs:
saved_programs.remove(program)
if program in saved_programs:
saved_programs.remove(program)

i3 = i3ipc.Connection()
for entry in saved_programs:
Expand Down

0 comments on commit 0f0a1d1

Please sign in to comment.