set_state() could be called when there are still no formats.
This commit is contained in:
@@ -46,11 +46,11 @@ class ClipboardPanelWindow(FrameWindow):
|
||||
self.connect("drag_data_get", self._clipboard_box.drag_data_get_cb)
|
||||
|
||||
def _owner_change_cb(self, clipboard, event):
|
||||
logging.debug("owner_change_cb")
|
||||
|
||||
if self._clipboard_box.owns_clipboard():
|
||||
return
|
||||
|
||||
logging.debug("owner_change_cb")
|
||||
|
||||
cb_service = clipboardservice.get_instance()
|
||||
key = cb_service.add_object(name="")
|
||||
cb_service.set_object_percent(key, percent = 100)
|
||||
|
||||
Reference in New Issue
Block a user