Class: Sh::Main

Inherits:
Object show all
Defined in:
lib/sh_main.rb

Instance Method Summary collapse

Constructor Details

#initializeMain

Returns a new instance of Main.



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# File 'lib/sh_main.rb', line 21

def initialize
	Log.info 'Shroom started'

  # See sh_player.rb for why this Wx stuff is necessary
  Wx::App.run do
    View.new.show
  end

  Log.debug 'Saving preferences...'
  Global.save_prefs
  Log.debug 'Global preferences saved'
  Plugin.save_prefs
  Log.debug 'Plugin preferences saved'
  Log.info 'Shroom quit'
end