def rename_layer(self): layer = self.get_selected_layer() txt = edit_dlg(self.app.mw, _('Rename layer'), layer.name) if txt is not None and not layer.name == txt: self.app.current_doc.api.set_layer_name(layer, txt)
def rename_layer(self): layer = self.get_selected_layer() txt = edit_dlg(self.app.mw, _('Rename layer'), layer.name) if not txt is None and not layer.name == txt: self.app.current_doc.api.set_layer_name(layer, txt)