Sha256: 7d7b5c43f3c88507096006d618f58a762cb8834f56eb5f817f8359ff04eaea41

Contents?: true

Size: 733 Bytes

Versions: 5

Compression:

Stored size: 733 Bytes

Contents

##   RSence
 #   Copyright 2010 Riassence Inc.
 #   http://riassence.com/
 #
 #   You should have received a copy of the GNU General Public License along
 #   with this software package. If not, contact licensing@riassence.com
 ##

# RSence 'Welcome' plugin
class WelcomePlugin < GUIPlugin
  def disable_self
    file_write( 'disabled', '' )
    @plugins.unload_bundle( @name )
  end
  
  def gui_params( msg )
    params = super
    params[:text] = {
      :welcome => file_read('text/welcome.html')
    }
    return params
  end
  
  def close_button( msg, value )
    dont_show_again = get_ses(msg)[:dont_show_again]
    if (value.data == 1) and (dont_show_again.data == true)
      disable_self
    end
    return true
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rsence-2.0.0.10.pre setup/welcome/welcome.rb
rsence-2.0.0.9.pre setup/welcome/welcome.rb
rsence-2.0.0.8.pre setup/welcome/welcome.rb
rsence-2.0.0.7.pre setup/welcome/welcome.rb
rsence-2.0.0.6.pre setup/welcome/welcome.rb