mirror of
https://github.com/storytold/gridcraft.git
synced 2026-10-26 03:36:54 -06:00
G3: build on current main
Screenshots are admitted in logic for the root viewport and issued from its pass, so nothing reads the focused native window any more; the field goes.
This commit is contained in:
@@ -141,7 +141,6 @@ impl DocWindows {
|
||||
let ctx = ui.ctx().clone();
|
||||
self.sync(app, &ctx);
|
||||
let focused = self.list.active().and_then(|id| self.list.get(id).copied());
|
||||
app.focus_window = focused;
|
||||
let titles: std::collections::HashMap<u64, String> = self.list.iter().map(|(_, w)| (*w, window_title(app, *w))).collect();
|
||||
let base = &self.base;
|
||||
// The window a command run in some window's UI activated (File › New, Switch Windows, a close).
|
||||
@@ -189,7 +188,6 @@ impl DocWindows {
|
||||
app.enter_window(target);
|
||||
}
|
||||
self.sync(app, &ctx);
|
||||
app.focus_window = self.list.active().and_then(|id| self.list.get(id).copied());
|
||||
}
|
||||
|
||||
/// A window's close button. Returns the window to bring forward when the close needs an
|
||||
|
||||
@@ -374,8 +374,6 @@ pub struct SheetApp {
|
||||
/// tests, embedding hosts) one window shows the active workbook window, and its close button
|
||||
/// quits.
|
||||
pub native_windows: bool,
|
||||
/// The native window that has focus, which menu commands and screenshots go to.
|
||||
pub(crate) focus_window: Option<u64>,
|
||||
/// The update check, the startup prompt and a running self-update (desktop only).
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
updates_rt: updates_ui::Runtime,
|
||||
@@ -436,7 +434,6 @@ impl SheetApp {
|
||||
ui_window: None,
|
||||
parked: HashMap::new(),
|
||||
native_windows: false,
|
||||
focus_window: None,
|
||||
#[cfg(not(target_arch = "wasm32"))]
|
||||
updates_rt: Default::default(),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user