mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-04-02 17:45:28 +00:00
implement custom dialog destroy method
This commit is contained in:
parent
5f76121c29
commit
af16893ec4
1 changed files with 11 additions and 2 deletions
|
|
@ -219,13 +219,13 @@ class Auth
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$this->gtk->destroy();
|
$this->destroy();
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Dialog canceled
|
// Dialog canceled
|
||||||
$this->gtk->destroy();
|
$this->destroy();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
@ -247,4 +247,13 @@ class Auth
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function destroy(): void
|
||||||
|
{
|
||||||
|
// Free memory
|
||||||
|
$this->_options = [];
|
||||||
|
|
||||||
|
// Destroy GTK object
|
||||||
|
$this->gtk->destroy();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue