mirror of https://github.com/NaN-tic/nanscan.git
Use new plugin loading mechanism introduced in Koo r508.
This commit is contained in:
parent
fe3f8c1cb8
commit
49e5d3d40c
|
@ -32,6 +32,7 @@ from NanScan.ScanDialog import *
|
|||
from PyQt4.QtGui import *
|
||||
from PyQt4.QtCore import *
|
||||
from PyQt4.uic import *
|
||||
from Koo.Plugins import Plugins
|
||||
|
||||
def scan(datas):
|
||||
s = ScanDialog()
|
||||
|
@ -58,3 +59,4 @@ class RpcSaveThreaded(SaveThreaded):
|
|||
if id:
|
||||
self.error = False
|
||||
|
||||
Plugins.register( 'scanner', 'nan.document', _('Scan Documents'), scan )
|
||||
|
|
Loading…
Reference in New Issue