Remove buttons from all windows on unload
- Remove not yet present import of i18n
This commit is contained in:
parent
a90465f716
commit
256de794a3
|
@ -22,7 +22,7 @@ from autoZoomer.autoZoomer import AutoZoomer
|
|||
from autoZoomer.button import AutoZoomerButton
|
||||
|
||||
|
||||
class Zoomer_Plugin(Falkon.PluginInterface, QtCore.QObject):
|
||||
class AutoZoomer_Plugin(Falkon.PluginInterface, QtCore.QObject):
|
||||
manager = None
|
||||
buttons = {}
|
||||
|
||||
|
@ -42,7 +42,11 @@ class Zoomer_Plugin(Falkon.PluginInterface, QtCore.QObject):
|
|||
|
||||
def unload(self):
|
||||
self.manager.saveSettings()
|
||||
self.mainWindowDeleted(self.window)
|
||||
for window in Falkon.MainApplication.instance().windows():
|
||||
self.mainWindowDeleted(window)
|
||||
|
||||
del self.manager
|
||||
self.manager = None
|
||||
|
||||
def testPlugin(self):
|
||||
return True
|
||||
|
@ -72,4 +76,4 @@ class Zoomer_Plugin(Falkon.PluginInterface, QtCore.QObject):
|
|||
page.loadFinished.connect(onLoadFinished)
|
||||
|
||||
|
||||
Falkon.registerPlugin(Zoomer_Plugin())
|
||||
Falkon.registerPlugin(AutoZoomer_Plugin())
|
||||
|
|
|
@ -19,7 +19,6 @@
|
|||
import os
|
||||
from PySide2 import QtCore, QtWidgets, QtUiTools
|
||||
from autoZoomer.listItem import ListItem
|
||||
from autoZoomer.i18n import i18n
|
||||
|
||||
|
||||
class SettingsDialog(QtWidgets.QDialog):
|
||||
|
|
Loading…
Reference in New Issue
Block a user