1
0
mirror of https://github.com/chylex/Nextcloud-Desktop.git synced 2025-02-25 03:46:00 +01:00

Overlay icons: Fix duplicate icons in nautilus

This commit is contained in:
Christian Kamm 2016-04-26 11:01:01 +02:00
parent 12bf6e39b7
commit b4cf17d99d

View File

@ -259,6 +259,7 @@ class SyncStateExtension(GObject.GObject, Nautilus.ColumnProvider, Nautilus.Info
if itemStore:
if( not itemStore['state'] or newState != itemStore['state'] ):
item = itemStore['item']
item.invalidate_extension_info() # clears the old emblem
item.add_emblem(emblem)
# print("Setting emblem on " + filename + "<>" + emblem + "<>") # For debug only
socketConnect.nautilusVFSFile_table[filename] = {'item': item, 'state':newState}