mirror of
https://github.com/anomalyco/opencode.git
synced 2026-04-30 13:39:52 +00:00
fix(desktop): correct module name for linux_display in main.rs (#12862)
This commit is contained in:
parent
9824370f82
commit
3d6fb29f0c
2 changed files with 2 additions and 5 deletions
|
|
@ -2,9 +2,6 @@
|
|||
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
||||
|
||||
// borrowed from https://github.com/skyline69/balatro-mod-manager
|
||||
#[cfg(target_os = "linux")]
|
||||
mod display;
|
||||
|
||||
#[cfg(target_os = "linux")]
|
||||
fn configure_display_backend() -> Option<String> {
|
||||
use std::env;
|
||||
|
|
@ -26,7 +23,7 @@ fn configure_display_backend() -> Option<String> {
|
|||
return None;
|
||||
}
|
||||
|
||||
let prefer_wayland = display::read_wayland().unwrap_or(false);
|
||||
let prefer_wayland = opencode_lib::linux_display::read_wayland().unwrap_or(false);
|
||||
let allow_wayland = prefer_wayland
|
||||
|| matches!(
|
||||
env::var("OC_ALLOW_WAYLAND"),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue