summaryrefslogtreecommitdiff
path: root/portato/gui/windows
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.net>2010-04-09 23:38:24 +0200
committerRené 'Necoro' Neumann <necoro@necoro.net>2010-04-09 23:38:24 +0200
commit359309950a1283dbbf9df6ce1085838087cfc262 (patch)
treef61c130ebc77fbe8c5d0791705e3d4bec5b1a00f /portato/gui/windows
parent96cc1e3964d5ab94847a5756f0494f112b3dac15 (diff)
downloadportato-359309950a1283dbbf9df6ce1085838087cfc262.tar.gz
portato-359309950a1283dbbf9df6ce1085838087cfc262.tar.bz2
portato-359309950a1283dbbf9df6ce1085838087cfc262.zip
Show dialog, that update world might not work as expected
Diffstat (limited to '')
-rw-r--r--portato/gui/windows/main.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/portato/gui/windows/main.py b/portato/gui/windows/main.py
index 665f1d6..0ec35a2 100644
--- a/portato/gui/windows/main.py
+++ b/portato/gui/windows/main.py
@@ -1512,7 +1512,14 @@ class MainWindow (Window):
finally:
self.window.window.set_cursor(None)
- GtkThread(name="Update-Thread", target=__update).start()
+ # for some reason, I have to create the thread before displaying the dialog
+ # else the GUI hangs
+ t = GtkThread(name="Update-Thread", target=__update)
+
+ if not self.session.get_bool("update_world_warning", "dialogs"):
+ self.session.set("update_world_warning", str(dialogs.update_world_warning_dialog()[1]), "dialogs")
+
+ t.start()
return True
fer the ctypes approach to get rid of yet another c-mo...René 'Necoro' Neumann3-27/+11 2009-09-03Use this wrapper instead of ctypes to set the textdomain and stuff for the gt...René 'Necoro' Neumann1-9/+5 2009-09-03Add small wrapper to C-gettextRené 'Necoro' Neumann2-1/+22 2009-08-31Update messages.potRené 'Necoro' Neumann1-42/+94 2009-08-31Removed the gtk- strings from translationsRené 'Necoro' Neumann7-3639/+3479 2009-08-31Removed the 'translatable' attribute from 'gtk-*' stringsRené 'Necoro' Neumann5-11/+11 2009-08-31Removed TODO. Renamed ChangeLog to TODORené 'Necoro' Neumann2-40/+0 2009-08-27Only import stuff if necessaryRené 'Necoro' Neumann1-8/+8 2009-08-25Release the threadQueue-Lock in syncv0.13René 'Necoro' Neumann1-0/+1 2009-08-25Updated portugese translationAlberto Federman Neto1-650/+687 2009-08-15Update spanish translationDaniel Halens1-245/+258 2009-08-15Use boolean flags instead of obscure C flags for ipc.MessageQueueRené 'Necoro' Neumann3-13/+15 2009-08-15TypoRené 'Necoro' Neumann1-1/+1 2009-08-15Enhanced the extensions.shRené 'Necoro' Neumann1-3/+8 2009-08-15Move eix-format to correct locationRené 'Necoro' Neumann1-0/+0