Merged system tray functionality with latest Steam integration
This commit is contained in:
@@ -731,6 +731,32 @@ mod linux {
|
||||
}
|
||||
}
|
||||
|
||||
// Windows-specific function to hide a window - DEPRECATED
|
||||
// We now use iced's window::change_mode instead for cross-platform compatibility
|
||||
#[cfg(windows)]
|
||||
pub fn hide_window() {
|
||||
println!("WARNING: platform::hide_window is deprecated. Use iced::window::change_mode instead.");
|
||||
}
|
||||
|
||||
// Windows-specific function to show a window - DEPRECATED
|
||||
// We now use iced's window::change_mode instead for cross-platform compatibility
|
||||
#[cfg(windows)]
|
||||
pub fn show_window() {
|
||||
println!("WARNING: platform::show_window is deprecated. Use iced::window::change_mode instead.");
|
||||
}
|
||||
|
||||
// Placeholder for non-Windows platforms - DEPRECATED
|
||||
#[cfg(not(windows))]
|
||||
pub fn hide_window() {
|
||||
println!("WARNING: platform::hide_window is deprecated. Use iced::window::change_mode instead.");
|
||||
}
|
||||
|
||||
// Placeholder for non-Windows platforms - DEPRECATED
|
||||
#[cfg(not(windows))]
|
||||
pub fn show_window() {
|
||||
println!("WARNING: platform::show_window is deprecated. Use iced::window::change_mode instead.");
|
||||
}
|
||||
|
||||
// Export the appropriate implementation based on platform
|
||||
#[cfg(windows)]
|
||||
pub use windows::{set_cursor, restore_cursor, render_cursor};
|
||||
|
||||
Reference in New Issue
Block a user