Better message indicating which folder will be deleted, to ensure that the user only deletes the one that really want to delete.
This commit is contained in:
parent
2f8a8dc1e4
commit
be34851f32
2 changed files with 2 additions and 3 deletions
|
|
@ -66,8 +66,7 @@
|
||||||
<property name="use_markup">True</property>
|
<property name="use_markup">True</property>
|
||||||
<property name="justify">center</property>
|
<property name="justify">center</property>
|
||||||
<property name="wrap">True</property>
|
<property name="wrap">True</property>
|
||||||
<property name="wrap_mode">word-char</property>
|
<property name="track_visited_links">False</property>
|
||||||
<property name="ellipsize">start</property>
|
|
||||||
</object>
|
</object>
|
||||||
<packing>
|
<packing>
|
||||||
<property name="expand">True</property>
|
<property name="expand">True</property>
|
||||||
|
|
|
||||||
|
|
@ -410,7 +410,7 @@ class devede_project:
|
||||||
|
|
||||||
if os.path.exists(data.path):
|
if os.path.exists(data.path):
|
||||||
ask_w = devede.ask.ask_window()
|
ask_w = devede.ask.ask_window()
|
||||||
retval = ask_w.run(_("The selected folder already exists. If you continue, it will be deleted. Continue?"),_("Delete folder"))
|
retval = ask_w.run(_("The selected folder already exists. To create the project, Devede must delete it.\nIf you continue, the folder\n\n <b>%s</b>\n\n and all its contents <b>will be deleted</b>. Continue?") % data.path,_("Delete folder"))
|
||||||
if retval:
|
if retval:
|
||||||
shutil.rmtree(data.path,True)
|
shutil.rmtree(data.path,True)
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue