defeat, MaximilianIII of Bavaria (the son of the late Emperor Charles Albert) made peace with Maria Theresa by the Treaty of Füssen on 22 April. In the treaty, Maximilian abandoned his father's claims on Austrian lands and promised to support Francis Stephen of Lorraine in the forthcoming imperial election; in return, Maria Theresa retroactively recognised Charles Albert's legitimacy as Holy Roman Emperor. This closed the Bavarian theatre of the War of the Austrian Succession, allowing Austria to concentrate its forces on the remaining fronts in Silesia, Italy, and the Netherlands. Mid-1745: Battles of Hohenfriedberg and Soor Having made peace with Bavaria, in late April Austria prepared for a large-scale invasion of Silesia, moving the army of Charles of Lorraine into Moravia, while a Saxon army organised near Leipzig. Frederick abandoned the mountainous southern tip of Upper Silesia to the Austrian vanguard of pandurs, concentrating his defences around the town of Frankenstein in the valley of the Eastern Neisse. Meanwhile, LeopoldI of Anhalt-Dessau was put in command of a smaller force in Brandenburg to prevent a Saxon invasion. At the end of May, the Austrian–Saxon force crossed through the Giant Mountains and camped around the Silesian village of Hohenfriedberg, where Frederick staged a surprise attack on the morning of 4 June. The ensuing Battle of Hohenfriedberg ended in a decisive Prussian victory, sending Prince Charles's army retreating in disarray back into the mountains. Austria's reversal at Hohenfriedberg removed any immediate prospect of recovering Silesia. The Prussians followed the retreating Austrian–Saxon army into Bohemia, harassing its rear as far as Königgrätz, where the two forces camped on opposite sides of the Elbe. The armies faced off but fought little during the next two months, while Frederick pursued a peace agreement that would again guarantee his control of Silesia. Britain's willingness to subsidise Austria's war against Prussia was greatly reduced by the outbreak of a new Jacobite uprising, and on 26 August Britain and Prussia agreed to the Convention of Hanover, in which both sides recognised each other's German possessions (including Prussian Silesia), and Prussia committed not to seek territorial gains in Bohemia or Saxony in any eventual peace agreement. On the Austrian side, Maria Theresa negotiated through the middle of the year with the German prince-electors to make her husband Holy Roman Emperor, now that the Bavarian emperor had died. The 1745 Imperial election was held on 13 September in Frankfurt, where