Skip to content

Commit

Permalink
Update autotheme.py
Browse files Browse the repository at this point in the history
fixed a bug that prevented the app from running if no internet connection was available
  • Loading branch information
jdarias committed Jun 24, 2020
1 parent 15a2b68 commit b17d5d4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autotheme.py
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ def load_conf():
openconf.close()

# if user set location, perform the calculation
if prog_options["use_location"]==True:
if prog_options["use_location"]==True and is_internet()==True:
calc_location()
#write_conf()

Expand Down Expand Up @@ -388,7 +388,7 @@ def githubbutton():
lbl_title.grid(column=1, row=0, sticky="w", padx=10)

# version
lbl_version=ttk.Label(text="Version 0.1", font=(None, 10, "bold"), master=frm_title)
lbl_version=ttk.Label(text="Version 0.1.1", font=(None, 10, "bold"), master=frm_title)
lbl_version.grid(column=1, row=1, sticky="w", padx=10)

# info about the program
Expand Down

0 comments on commit b17d5d4

Please sign in to comment.