Add .desktop file to install
This commit is contained in:
@@ -49,9 +49,9 @@ class Handlers:
|
||||
"Importing a library will override your current library. "
|
||||
"Proceed?")
|
||||
if override_question == Gtk.ResponseType.YES:
|
||||
(library, tags) = util.import_library(dialog.get_filename())
|
||||
self.app.library = library
|
||||
self.app.tags = tags
|
||||
imports = util.import_library(dialog.get_filename())
|
||||
self.app.library = imports[0]
|
||||
self.app.tags = imports[1]
|
||||
# Cause current page to reload with imported data
|
||||
self.app.current_page.emit('show')
|
||||
self.app.unsaved_changes = True
|
||||
|
||||
8
cardvault/resources/cardvault.desktop
Normal file
8
cardvault/resources/cardvault.desktop
Normal file
@@ -0,0 +1,8 @@
|
||||
[Desktop Entry]
|
||||
Version=0.5
|
||||
Type=Application
|
||||
Name=Card Vault
|
||||
Comment=Oraganize and plan your MTG card collection
|
||||
TryExec=cardvault
|
||||
Exec=cardvault %F
|
||||
Icon=application-x-executable
|
||||
@@ -209,7 +209,8 @@ def import_library(path):
|
||||
tags = imported["tags"]
|
||||
except KeyError as err:
|
||||
log("Invalid library format " + str(err), LogLevel.Error)
|
||||
return
|
||||
library = {}
|
||||
tags = {}
|
||||
|
||||
log("Library imported", LogLevel.Info)
|
||||
return (library, tags)
|
||||
|
||||
Reference in New Issue
Block a user