mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-20 05:17:56 +00:00
Sort symbols by theme. Fixes https://github.com/GNS3/gns3-gui/issues/3230
This commit is contained in:
parent
5eb5658a74
commit
5ece48500c
@ -104,8 +104,7 @@ class Symbols:
|
|||||||
'builtin': False,
|
'builtin': False,
|
||||||
'theme': "Custom symbols"})
|
'theme': "Custom symbols"})
|
||||||
self._symbols_path[symbol_file] = os.path.join(root, filename)
|
self._symbols_path[symbol_file] = os.path.join(root, filename)
|
||||||
|
symbols.sort(key=lambda x: x["theme"])
|
||||||
symbols.sort(key=lambda x: x["filename"])
|
|
||||||
return symbols
|
return symbols
|
||||||
|
|
||||||
def symbols_path(self):
|
def symbols_path(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user