mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-24 01:38:26 +02:00
Debug Window
This commit is contained in:
@@ -95,6 +95,12 @@ pub(crate) fn create_window<R: Runtime>(
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[cfg(not(target_os = "macos"))]
|
||||||
|
{
|
||||||
|
println!("ENABLING DECORATIONS FOR WINDOW");
|
||||||
|
win_builder = win_builder.decorations(true);
|
||||||
|
}
|
||||||
|
|
||||||
let settings = handle.db().get_settings();
|
let settings = handle.db().get_settings();
|
||||||
if config.hide_titlebar && !settings.use_native_titlebar {
|
if config.hide_titlebar && !settings.use_native_titlebar {
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
@@ -105,6 +111,7 @@ pub(crate) fn create_window<R: Runtime>(
|
|||||||
#[cfg(not(target_os = "macos"))]
|
#[cfg(not(target_os = "macos"))]
|
||||||
{
|
{
|
||||||
// Doesn't seem to work from Rust, here, so we do it in main.tsx
|
// Doesn't seem to work from Rust, here, so we do it in main.tsx
|
||||||
|
println!("DISABLING DECORATIONS FOR WINDOW");
|
||||||
win_builder = win_builder.decorations(false);
|
win_builder = win_builder.decorations(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user