Fixed bug when saved selected file (in the config.ini) has been deleted before program start
This commit is contained in:
parent
aae5152288
commit
e06cc1d4fc
@ -37,7 +37,10 @@ def load_config(file="config.ini"): # load config from configparser.ConfigParse
|
||||
if "file" in to_load['DEFAULT']:
|
||||
filename = to_load['DEFAULT']['file']
|
||||
if filename != "":
|
||||
try:
|
||||
tab1_load_file()
|
||||
except FileNotFoundError:
|
||||
tab1_clear()
|
||||
if "inline" in to_load['DEFAULT']:
|
||||
window.tab2_plainTextEdit.setPlainText(to_load['DEFAULT']['inline'])
|
||||
if "action" in to_load['DEFAULT']:
|
||||
|
Loading…
x
Reference in New Issue
Block a user