Window resizing and Maximize button for Windows Desktop Client v0.4.0-rc-5 #492
Psyfer9983
started this conversation in
Ideas
Replies: 0 comments
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've been playing with the source code a little trying to fixe/add some things that I thought were annoying.
First the client would crash every time it was restored after being closed to the system tray. Just doing a clean build from source without any modifications fixed that. I still don't know why or what was causing the crash but I'll take the win.
Second, I wanted to see if window resizing and a maximize button could be added/enabled. Below is what I changed to successfully get both working for me.
This is for client v0.4.0-rc-5 but may work on older versions and I hope this is added in future builds.
File: desktop/src-tauri/src/lib.rs (line 313 through 321 is what I changed, may vary for you but search for "let main_window")
Just match the following.
File: desktop\main\components\WindowControl.vue
Here is my full file since its small. The changes below will add a Maximize button between them.
File: desktop\src-tauri\capabilities\default.json
Here is my full file since its small as well.
Once you have those changes, just build/compile the source and you should have resizing and a maximize button enabled.
All reactions