Commits

Rodrigo Bistolfi committed 83bcd31

Reboot button

  • Participants
  • Parent commits 3d6c5c9

Comments (0)

Files changed (1)

vinstall/core/wizard.py

 
 
 import Queue
-import sys
-import unittest
+import sys, os
 from inspect import isgeneratorfunction
 from concurrent import futures
 from .command import ProcessingFacade
         controller = self.factory.make_controller_instance(ProcessingController)
         self.process_state(controller)
         self.current_render.main_window.clear_callbacks()
-        self.current_render.main_window.add_next_callback(self.stop)
+        self.current_render.main_window.add_next_callback(self.reboot)
         self.current_render.main_window.add_previous_callback(self.stop)
         processing.execute_all()
 
         "Exit the wizard"
         self.current_render.main_window.stop()
 
+    def reboot(self, *_):
+        "Exit the wizard and reboot"
+        self.stop()
+        os.kill(1, 2)