Configtool: be helpful when trying to overwrite protected files.
This commit is contained in:
parent
a8ab755f31
commit
6c7133792e
|
|
@ -456,7 +456,8 @@ class BoardPanel(wx.Panel):
|
|||
|
||||
def saveConfigFile(self, path):
|
||||
if os.path.basename(path) in protectedFiles:
|
||||
dlg = wx.MessageDialog(self, "Unable to overwrite %s." % path,
|
||||
dlg = wx.MessageDialog(self, "It's not allowed to overwrite files "
|
||||
"distributed by Teacup. Choose another name.",
|
||||
"Protected file error", wx.OK + wx.ICON_ERROR)
|
||||
dlg.ShowModal()
|
||||
dlg.Destroy()
|
||||
|
|
|
|||
|
|
@ -315,7 +315,8 @@ class PrinterPanel(wx.Panel):
|
|||
|
||||
def saveConfigFile(self, path):
|
||||
if os.path.basename(path) in protectedFiles:
|
||||
dlg = wx.MessageDialog(self, "Unable to overwrite %s." % path,
|
||||
dlg = wx.MessageDialog(self, "It's not allowed to overwrite files "
|
||||
"distributed by Teacup. Choose another name.",
|
||||
"Protected file error", wx.OK + wx.ICON_ERROR)
|
||||
dlg.ShowModal()
|
||||
dlg.Destroy()
|
||||
|
|
|
|||
Loading…
Reference in New Issue