Menu

#118 MComix does not open in maximised mode

SVN
closed-fixed
None
5
2023-09-16
2020-08-23
No

MComix does not open in maximised mode.
Everytime I start MComix, it doesn't open in maximised window mode. Even previous session I maximised it and closed, but next open still not in maximised mode.

Discussion

  • Minh Quan Pham

    Minh Quan Pham - 2020-08-23

    Environment: Windows 10 64 bit.

     
  • Source Forger

    Source Forger - 2022-05-21

    same problem here, tried all possible solutions i could think off, but none worked, hope this gets fixed

     
  • Fx01

    Fx01 - 2022-06-19

    same here

     
  • Nano Anon

    Nano Anon - 2023-02-12

    I can't be bothered to fix this bug properly, but here's my quick and dirty workaround: replace (comment out) the line

    self.restore_window_geometry()
    

    with

    #self.restore_window_geometry()
    self.maximize()
    

    in the file main.py, line 263. in the 2.1.0. release.

    Note that this way it will never restore the previous size, always starts maximized.

    (The real solution would be to call is_maximized() in the function save_window_geometry(), store the result in the preferences file, and use it in restore_window_geometry(), but I'll leave this to the devs...)

     
    👍
    1

    Last edit: Nano Anon 2023-02-12
    • Source Forger

      Source Forger - 2023-02-13

      can you tell me where i can find the main.py file, didnt find it anywhere

       
      • Nano Anon

        Nano Anon - 2023-02-13

        It's in the "mcomix-2.1.0/mcomix/" folder in the .zip or .tar.gz archives that you can download here. After modifying the file you have to reinstall.

        If you are using the Windows binary then I'm afraid you are out of luck.

         
        • Source Forger

          Source Forger - 2023-02-16

          what do you mean by windows binary?

           
          • Nano Anon

            Nano Anon - 2023-02-16

            If you are using Windows and running "mcomix.exe" you can't simply modify the app, and I can't help you with that, either. You have to wait until the project maintainers solve this problem in the next release. I submitted a patch with my solution, that's all I can do now.

             
            • Source Forger

              Source Forger - 2023-02-17

              I see, Thanks for your help, and i hope the maintainers solve this soon

               
  • Oddegamra

    Oddegamra - 2023-09-16
    • status: open --> closed-out-of-date
    • assigned_to: Oddegamra
     
  • Oddegamra

    Oddegamra - 2023-09-16
    • status: closed-out-of-date --> pending
     
  • Oddegamra

    Oddegamra - 2023-09-16
    • status: pending --> closed-fixed
     
  • Oddegamra

    Oddegamra - 2023-09-16

    It appears that MComix simply did not remember that the window was maximized before, and thus didn't restore it this way. This should be fixed now.

     

Log in to post a comment.