Menu

#130 App always opens in a small windows, ignoring the previously set window size

Git
closed-fixed
None
2
2023-04-27
2022-05-21
No

no matter which size i set the app's window too, it always opens up in a miniscule windows, thus the need to resize it each time

Discussion

  • Bug Menot

    Bug Menot - 2023-04-25

    modify main.py change_fullscreen in main.py to add a check for self.previous_size != (None, None) which will detect if it is changing to fullscreen at startup and avoid saving an incorrect screen geometry.

        def change_fullscreen(self, toggleaction):
            # Disable action until transition if complete.
            toggleaction.set_sensitive(False)
            if toggleaction.get_active():
                if self.previous_size != (None, None):
                  self.save_window_geometry()
                self.fullscreen()
            else:
                self.unfullscreen()
    

    To prevent the small window from showing momentarily before becoming fullscreen at startup, modify __init__ in main.py to move self.show() to between

    if prefs['default fullscreen'] or fullscreen:
    

    and

    if prefs['previous quit was quit and save']:
    
     
  • Source Forger

    Source Forger - 2023-04-26

    is it possible to include this on the next update please? im on Windows and cant modify this from what i understand

     
  • Oddegamra

    Oddegamra - 2023-04-27
    • status: open --> closed-fixed
    • assigned_to: Oddegamra
     
  • Oddegamra

    Oddegamra - 2023-04-27

    Thank you, Bug Menot, this has been bothering me for a while and I was unable to find a fix!

     

Log in to post a comment.