Removing some constants
Former-commit-id: 56c657766d277852f26c403ecaad16f5db0393ef
This commit is contained in:
parent
082657b3af
commit
bd5fe72ab2
@ -18,7 +18,4 @@
|
||||
|
||||
c = {
|
||||
'appVersion': '0.10b',
|
||||
'urlFeedback': 'http://foosoft.net/comments/',
|
||||
'urlHomepage': 'http://foosoft.net/yomichan/',
|
||||
'urlUpdates': 'http://foosoft.net/pub/projects/yomichan/updates.xml',
|
||||
}
|
||||
|
@ -224,12 +224,12 @@ class MainWindowReader(QtGui.QMainWindow, gen.reader_ui.Ui_MainWindowReader):
|
||||
|
||||
|
||||
def onActionHomepage(self):
|
||||
url = QtCore.QUrl(constants.c['urlHomepage'])
|
||||
url = QtCore.QUrl('http://foosoft.net/yomichan/')
|
||||
QtGui.QDesktopServices().openUrl(url)
|
||||
|
||||
|
||||
def onActionFeedback(self):
|
||||
url = QtCore.QUrl(constants.c['urlFeedback'])
|
||||
url = QtCore.QUrl('http://foosoft.net/comments/')
|
||||
QtGui.QDesktopServices().openUrl(url)
|
||||
|
||||
|
||||
|
@ -28,7 +28,7 @@ class UpdateFinder(QtCore.QThread):
|
||||
def run(self):
|
||||
latest = None
|
||||
try:
|
||||
fp = urllib2.urlopen(constants.c['urlUpdates'])
|
||||
fp = urllib2.urlopen('http://foosoft.net/pub/projects/yomichan/updates.xml')
|
||||
data = fp.read()
|
||||
doc = minidom.parseString(data)
|
||||
root = doc.documentElement
|
||||
|
Loading…
Reference in New Issue
Block a user