MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord

    resume()

    Development
    4
    12
    3378
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Anhalter42 last edited by

      In the documentation it is stated: When a module will be shown after it was previously hidden (using the module.show() method), the resume() method will be called.

      For me “after it was previously hidden” means, that resume() should only get called when the module was hidden/not visible before and now changes its status to visible. I’ve tried this and it looks like the resume() method gets called even when the module was visible before. I’ve seen this behaviour while using the MMM-ProfileSwitcher. Switching between profiles that contain the same module (among others) triggers resume() on this module.

      (After quickly looking through the code, I’m pretty sure MMM-ProfileSwitcher uses standard .show() and .hide(), so it should be generalizable. If necessary, I can try to make a small minimal example.)

      johnnyboy 1 Reply Last reply Reply Quote 0
      • johnnyboy
        johnnyboy @Anhalter42 last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • cowboysdude
          cowboysdude Module Developer last edited by cowboysdude

          So what would you suggest to fix it? I mean you know being free software and all that many people spend a lot of time improving…for free.

          johnnyboy 1 Reply Last reply Reply Quote 2
          • johnnyboy
            johnnyboy @cowboysdude last edited by

            This post is deleted!
            cowboysdude 1 Reply Last reply Reply Quote 0
            • cowboysdude
              cowboysdude Module Developer @johnnyboy last edited by cowboysdude

              @johnnyboy No you haven’t offended me. Not jumping on anyone… I’m just a very direct person and I tend to say what I mean.

              So don’t be offended I’m just simply asking you or anyone else what do you suggest gets done?

              johnnyboy 1 Reply Last reply Reply Quote 1
              • johnnyboy
                johnnyboy @cowboysdude last edited by

                This post is deleted!
                cowboysdude 1 Reply Last reply Reply Quote 0
                • cowboysdude
                  cowboysdude Module Developer @johnnyboy last edited by

                  @johnnyboy I would rather have suggestions to fix it rather then agree… that should have taken up on the https://github.com/MichMich/MagicMirror site…

                  johnnyboy 1 Reply Last reply Reply Quote 1
                  • johnnyboy
                    johnnyboy @cowboysdude last edited by

                    This post is deleted!
                    cowboysdude 1 Reply Last reply Reply Quote 0
                    • cowboysdude
                      cowboysdude Module Developer @johnnyboy last edited by

                      @johnnyboy Good, if it helps I’m all for it 🙂

                      johnnyboy 1 Reply Last reply Reply Quote 2
                      • johnnyboy
                        johnnyboy @cowboysdude last edited by

                        This post is deleted!
                        1 Reply Last reply Reply Quote 1
                        • 1
                        • 2
                        • 1 / 2
                        • First post
                          Last post
                        Enjoying MagicMirror? Please consider a donation!
                        MagicMirror created by Michael Teeuw.
                        Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
                        This forum is using NodeBB as its core | Contributors
                        Contact | Privacy Policy