Ticket #1154 (closed check: fixed)

Opened 2 years ago

Last modified 2 years ago

Canvas improvements

Reported by: romzee Owned by: Ales Erjavec <ales.erjavec@…>
Milestone: Component: canvas
Severity: minor Keywords: Recent Schema
Cc: Blocking:
Blocked By:

Description

1. BUG In Orange Canvas , In File menu , Recent Schemas option , when the recent schemas is empty , its now gives no message.

PATCH In File: Orange\OrangeCanvas\orngCanvas.pyw In function readRecentFiles(self) : update lines 618 to 620 to the following code :

if len(recentDocs) == 0 :
            self.menuRecent.addAction("None")
        else :			
            for i in range(len(recentDocs)):
                shortName = "&" + str(i + 1) + " " +
os.path.basename(recentDocs[i])
                self.menuRecent.addAction(shortName, lambda ind=i: self.openRecentFile(ind + 1),)

BUG Presently clicking any files from recent schema , doesn't notify you to save the present schema .

patch In File: Orange\OrangeCanvas\orngCanvas.pyw in function openReecntFile update line 623 to :

if  self.schema.saveBeforeClose() and len(self.settings["RecentFiles"]) >= index:

Change History

comment:1 Changed 2 years ago by Ales Erjavec <ales.erjavec@…>

  • Owner set to Ales Erjavec <ales.erjavec@…>
  • Status changed from new to closed
  • Resolution set to fixed

In [1bb34376f08d389ec5a5ff011064712d5d14db44/orange]:

Canvas improvements as suggested by romzee, fixes #1154.

Note: See TracTickets for help on using tickets.