mirror of
https://gitlab.gnome.org/World/Authenticator.git
synced 2025-03-04 08:44:40 +01:00
window: Disable inspector on release builds
This commit is contained in:
parent
da507399ca
commit
7e5dd0029c
1 changed files with 10 additions and 1 deletions
|
@ -109,7 +109,16 @@ mod imp {
|
|||
|
||||
impl ObjectImpl for Window {}
|
||||
impl WidgetImpl for Window {}
|
||||
impl WindowImpl for Window {}
|
||||
impl WindowImpl for Window {
|
||||
fn enable_debugging(&self, window: &Self::Type, toggle: bool) -> bool {
|
||||
if config::PROFILE != "Devel" {
|
||||
tracing::warn!("Inspector is disabled for non development builds");
|
||||
false
|
||||
} else {
|
||||
self.parent_enable_debugging(window, toggle)
|
||||
}
|
||||
}
|
||||
}
|
||||
impl ApplicationWindowImpl for Window {}
|
||||
impl AdwApplicationWindowImpl for Window {}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue