Skip to content

Commit

Permalink
Separate read_configuration for running problems
Browse files Browse the repository at this point in the history
Now read_configuration only in run()
  • Loading branch information
algorys committed Jul 17, 2016
1 parent 89db785 commit 3b3e3a7
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions alignak_app/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,6 @@ def main(self):
"""
Create indicator, menu and main Gtk
"""
# Get configuration
self.read_configuration()

# Create Menus
self.app_menu = AppMenu(self.config)
self.app_menu.build_items()
Expand Down Expand Up @@ -242,6 +239,10 @@ def run(self):
"""
Run application
"""

# Read settings.cfg
self.read_configuration()

# Run main to initialize app
self.main()

Expand Down

0 comments on commit 3b3e3a7

Please sign in to comment.