Skip to content

Commit

Permalink
force usage of ics extension
Browse files Browse the repository at this point in the history
  • Loading branch information
Buchhems authored Jan 6, 2023
1 parent 84ff5e8 commit 10aa988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion excel2ical.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ def browse_excel_file():

def browse_ics_file():
global icsfilepath
icsfilepath = filedialog.asksaveasfilename(title='ICS-Datei bestimmen', filetypes=[('ICS Dokument', '*.ics')])
icsfilepath = filedialog.asksaveasfilename(title='ICS-Datei bestimmen', filetypes=[('ICS Dokument', '*.ics')], defaultextension='.ics')
# next two lines to only show the filename on the label. The complete path would be too long to print.
filename = os.path.basename(icsfilepath)
ics_file_label.config(text="\n" + filename)
Expand Down

0 comments on commit 10aa988

Please sign in to comment.