mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +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;
|
||||
}
|
||||
|
||||
// Dialog canceled
|
||||
$this->gtk->destroy();
|
||||
$this->destroy();
|
||||
|
||||
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