Replies: 1 comment 3 replies
-
| 
         Which version of slint do you have? I have exactly the same thing as you in a project and it works great for me   let main_window = MainWindow::new().unwrap();
  let view_window = ViewWindow::new().unwrap();
  main_window.on_start_window({
    let view_window = view_window.as_weak();
    move || {
        view_window.unwrap().show().unwrap();
    });Note Just keep in mind that globals are not yet shared between window instances #784 (comment), so that part is up to you (an   | 
  
Beta Was this translation helpful? Give feedback.
                  
                    3 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following code that defines a window with a callback when a button is pressed. I want to catch that callback and spawn a new window when it happens.
Then, from Rust code, I'm catching the callback and trying to spawn the library manager window:
The problem is, this just doesn't work. The window doesn't show up. What am I doing wrong?
Beta Was this translation helpful? Give feedback.
All reactions