more consistent state and GUI update, e.g. relevant for full-screen mode switch with its exit/init side-effect;
authorwenzelm
Fri Oct 11 23:12:04 2013 +0200 (2013-10-11 ago)
changeset 54327148903e47b26
parent 54326 c5556b404902
child 54328 ffa4e0b1701e
more consistent state and GUI update, e.g. relevant for full-screen mode switch with its exit/init side-effect;
src/Pure/PIDE/query_operation.scala
     1.1 --- a/src/Pure/PIDE/query_operation.scala	Fri Oct 11 22:11:07 2013 +0200
     1.2 +++ b/src/Pure/PIDE/query_operation.scala	Fri Oct 11 23:12:04 2013 +0200
     1.3 @@ -210,5 +210,8 @@
     1.4    def deactivate() {
     1.5      editor.session.commands_changed -= main_actor
     1.6      remove_overlay()
     1.7 +    reset_state()
     1.8 +    consume_output(Document.Snapshot.init, Command.Results.empty, Nil)
     1.9 +    consume_status(current_status)
    1.10    }
    1.11  }