File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 3434class AlpacaApplication (Adw .Application ):
3535 """The main application singleton class."""
3636
37- def __init__ (self ):
37+ def __init__ (self , version ):
3838 super ().__init__ (application_id = 'com.jeffser.Alpaca' ,
3939 flags = Gio .ApplicationFlags .DEFAULT_FLAGS )
4040 self .create_action ('quit' , lambda * _ : self .quit (), ['<primary>q' ])
4141 self .create_action ('preferences' , lambda * _ : AlpacaWindow .show_preferences_dialog (self .props .active_window ), ['<primary>p' ])
4242 self .create_action ('about' , self .on_about_action )
43- self .version = '1.0.1'
43+ self .version = version
4444
4545 def do_activate (self ):
4646 win = self .props .active_window
@@ -77,6 +77,6 @@ def main(version):
7777 format = "%(levelname)s\t [%(filename)s | %(funcName)s] %(message)s" ,
7878 level = logging .INFO
7979 )
80- app = AlpacaApplication ()
80+ app = AlpacaApplication (version )
8181 logger .info (f"Alpaca version: { app .version } " )
8282 return app .run (sys .argv )
You can’t perform that action at this time.
0 commit comments