kofigumbs / multi

Create custom, lightweight macOS apps from websites
GNU General Public License v3.0
1.29k stars 40 forks source link

Multi 3.0: Window size isn't remembered #123

Open casualbugs opened 1 year ago

casualbugs commented 1 year ago

Recreated the Instagram app with the following code

`{ "tabs": [ { "title": "Instagram", "url": "https://www.instagram.com", "basicAuthUser": "user", "basicAuthPassword": "password", "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.0 Safari/605.1.15" } ], "windowed": true, "alwaysNotify": true, "openNewWindowsWith": "com.brave.browser", "openNewWindowsInBackground": true }

`

Whenever I open the app > close/minimize it using the red x title bar button > launch it again from the dock. It resizes to a small window.

Resize > CMD +Q > Re-open works perfectly.

Did not happen with the old version

rightsaidfred99 commented 1 year ago

It happens because it seems they made a change where in the past, closing would quit. Now it seems closing just resets the app.

I think if you put this line in, it should work

"terminateWithLastWindow": true,

kofigumbs commented 1 year ago

Thanks for the workaround @rightsaidfred99. I think there's probably still a bug here since macOS windows should remember their last size without the app needing a restart.

retorquere commented 1 year ago

Adding

"terminateWithLastWindow": true,

doesn't work for me, the app does indeed terminate with last close, but it comes back as the default size in the default place rather than the size/place before opening.