src/Builder4/MainWindow.vala
"* prop" : "model",
"bool autoselect" : false,
"bool can_unselect" : true,
+ "bool selecting" : false,
"id" : "winsel",
"items" : [
{
"listeners" : {
"notify[\"selected\"]" : [
"() => {",
- "\tif (_this.winloading) {",
+ "\tif (_this.winloading || this.selecting) {",
"\t\treturn;",
"\t}",
"\tvar ws = this.el.selected_item as WindowState;",
// my vars (def)
+ public bool selecting;
// ctor
public Xcls_winsel(Xcls_MainWindow _owner )
this.el = new Gtk.SingleSelection( child_1.el );
// my vars (dec)
+ this.selecting = false;
// set gobject values
this.el.can_unselect = true;
//listeners
this.el.notify["selected"].connect( () => {
- if (_this.winloading) {
+ if (_this.winloading || this.selecting) {
return;
}
var ws = this.el.selected_item as WindowState;