Class: ClashSystray::Application
- Inherits:
-
Object
- Object
- ClashSystray::Application
- Defined in:
- lib/clash-systray/app.rb
Class Method Summary collapse
Instance Method Summary collapse
- #exec ⇒ Object
-
#initialize ⇒ Application
constructor
A new instance of Application.
Constructor Details
#initialize ⇒ Application
Returns a new instance of Application.
13 14 15 16 |
# File 'lib/clash-systray/app.rb', line 13 def initialize @app = QApplication.new @systray = Systray.new end |
Class Method Details
.run ⇒ Object
9 10 11 |
# File 'lib/clash-systray/app.rb', line 9 def self.run new.exec end |
Instance Method Details
#exec ⇒ Object
18 19 20 21 22 23 |
# File 'lib/clash-systray/app.rb', line 18 def exec Contrib::SigHandler.new(@app) @systray.show @app.exec end |