mirror of
https://github.com/tauri-apps/tauri.git
synced 2024-12-15 05:31:42 +03:00
This commit is contained in:
parent
3e702cf8b1
commit
25aa4347b3
5
.changes/fix-window-remote-url.md
Normal file
5
.changes/fix-window-remote-url.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"tauri": patch
|
||||
---
|
||||
|
||||
Prepare window icon and menu even when loading remote URLs. Previously it was behind a `is local URL?` condition.
|
@ -458,20 +458,6 @@ impl<R: Runtime> WindowManager<R> {
|
||||
|
||||
pending.webview_attributes = webview_attributes;
|
||||
|
||||
if !pending.window_builder.has_icon() {
|
||||
if let Some(default_window_icon) = self.inner.default_window_icon.clone() {
|
||||
pending.window_builder = pending
|
||||
.window_builder
|
||||
.icon(default_window_icon.try_into()?)?;
|
||||
}
|
||||
}
|
||||
|
||||
if pending.window_builder.get_menu().is_none() {
|
||||
if let Some(menu) = &self.inner.menu {
|
||||
pending = pending.set_menu(menu.clone());
|
||||
}
|
||||
}
|
||||
|
||||
let mut registered_scheme_protocols = Vec::new();
|
||||
|
||||
for (uri_scheme, protocol) in &self.inner.uri_scheme_protocols {
|
||||
@ -1118,6 +1104,20 @@ impl<R: Runtime> WindowManager<R> {
|
||||
|
||||
pending.url = url.to_string();
|
||||
|
||||
if !pending.window_builder.has_icon() {
|
||||
if let Some(default_window_icon) = self.inner.default_window_icon.clone() {
|
||||
pending.window_builder = pending
|
||||
.window_builder
|
||||
.icon(default_window_icon.try_into()?)?;
|
||||
}
|
||||
}
|
||||
|
||||
if pending.window_builder.get_menu().is_none() {
|
||||
if let Some(menu) = &self.inner.menu {
|
||||
pending = pending.set_menu(menu.clone());
|
||||
}
|
||||
}
|
||||
|
||||
if is_local {
|
||||
let label = pending.label.clone();
|
||||
pending = self.prepare_pending_window(
|
||||
|
Loading…
Reference in New Issue
Block a user