God does what He does because of who He is.
We can’t separate the two.
Often, we are willing to praise God and to thank Him when we see how He’s working and when we know that He’s answering our prayers. But during the times when it seems as if He’s not hearing us, the times when we can’t figure out what on earth He’s thinking, we tend to turn our backs on Him. We praise Him according to what we see rather than what He sees. God’s character hasn’t changed. We have changed. He is still the same God, whether we know how He is working or not.
What we think we want isn’t always what He supplies, but He will supply.