Skip to content

Commit

Permalink
Remove ID column from the Layer table
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Jul 3, 2024
1 parent fbbb705 commit 12a3860
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions dynamic_layers/dynamic_layers.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,6 @@ def __init__(self, iface: QgisInterface):
# Layers attribute that can be shown and optionally changed in the plugin
self.layersTable = [
{
'key': 'id',
'display': self.tr('ID'),
'editable': False,
}, {
'key': 'name',
'display': self.tr('Name'),
'editable': False,
Expand Down Expand Up @@ -318,6 +314,7 @@ def populate_layer_table(self):
new_item.setData(QtVar.EditRole, value)
if attr['key'] == 'name':
new_item.setIcon(QgsIconUtils.iconForLayer(layer))
new_item.setToolTip(layer.id())

# Add cell data to lineData
# encode it in the file system encoding, only if needed
Expand Down Expand Up @@ -825,6 +822,8 @@ def on_apply_variables_clicked(self):

@staticmethod
def generate_projects_clicked():
""" Open the Processing algorithm dialog. """
# noinspection PyUnresolvedReferences
dialog = processing.createAlgorithmDialog(
"dynamic_layers:generate_projects",
{}
Expand Down

0 comments on commit 12a3860

Please sign in to comment.